Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding
Message
 
To
07/04/2003 13:53:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00774783
Message ID:
00774807
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
I wanted to know this to.
After I set the decimal to 5 it works.
set decimal to 5
Tracy

>didnt work:
>>nVal = 0.00014
>>? ROUND( nVal * 2, 4 ) / 2
>
>this returns 0.0002
>
>I need it to return 0.00015 if nVal=0.00014
>if nval then return
> 0.00011 \ 0.00010
> 0.00012 \ 0.00010
> 0.00013 \ 0.00015
> 0.00014 \ 0.00015
> 0.00015 \ 0.00015
> 0.00016 \ 0.00015
> 0.00017 \ 0.00015
> 0.00018 \ 0.00020
> 0.00019 \ 0.00020
> 0.00020 \ 0.00020
Tracy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform