Additional info.  SET DECIMALS affects TRANSFORM when you provide the
formatting parameter.  If you just use TRANSFORM(0.042), you'll get "0.042"
even if SET DECIMALS is 2 as long as SET FIXED is OFF.

Fred

On Wed, Feb 25, 2015 at 5:41 PM, Gene Wirchenko <[email protected]> wrote:

> Dear Vixens and Reynards:
>
>      I just noticed that a program that I thought was working right is
> not.  I can replicate the problem with:
>           ? transform(0.042,"9.999")
>
>      On my system, it gives output of "0.040".  I expected "0.042".
>
>      If I set decimals to 3, it then works, but I have set fixed off so I
> do not think that the set decimals setting should be affecting this.
>
>      I am leery of making a change to the set decimals setting as I am
> concerned that it could mess up elsewhere in my system.
>
>      The help is not terribly clear and does not mention transform() being
> affected by the set decimals setting.  How does this work?  What do I have
> to do to get the desired result?
>
> Sincerely,
>
> Gene Wirchenko
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cajcbksrujtzifc5fwncljvkme+hxdwub8ioqocgktnh4yjw...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to