Just subtract the modulus of the precision you're interested in. For two
decimals, use .01. 

Using your examples:

lnx = 1.9256
lnx - mod( lnx, .01) = 1.9200

lnx = 5.565
lnx - mod( lnx, .01) = 5.560

lnx = 4.449
lnx - mod( lnx, .01) = 4.440

For three decimals, use .001, etc. 

-Rick


> -----Original Message-----
> From: profoxtech-boun...@leafe.com 
> [mailto:profoxtech-boun...@leafe.com] On Behalf Of Sytze de Boer
> Sent: Wednesday, January 25, 2012 3:00 PM
> To: profoxt...@leafe.com
> Subject: Rounding DOWN
> 
> Hi Folk
> 
> What is the best way systems round Down ?
> e.g.
> 1.9256 to 1.92
> 5.565 to 5.56
> 4.449 to 4.44
> 
> -- 
> Regards
> Sytze de Boer
> 
> 
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/4f56a885.a656b60a.7ccc.5...@mx.google.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