Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop ROUNDing
Message
From
08/01/1999 10:30:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00173926
Message ID:
00174021
Views:
48
>>>>Hello all!
>>>>
>>>>Can anyone advise how to STOP VFP6 from Rounding to the nearest whole number (even though this is actually a numeric field of 8,2)?
>>>>
>>>>This is the best way I can explain what is happening...
>>>>
>>>>I want it to STOP rounding from 111.51 to 112.00 or 23.35 to 23.00
>>>>
>>>>Can anyone help?
>>>>
>>>>TIA,
>>>>
>>>>Dan
>>>
>>>PS... SOrry a little further explanation...
>>>
>>>the value for the numeric field that ROUND OFF are calculated in a previous field on my form. It fills the numeric field with the correct value as calculated, ie: 111.51 but upon ENTRY into that field, the value changes to 112.00...
>>Dan,
>>Might it be "set decimals .." or inputmask ?
>>Cetin
>
>Cetin,
>
>I have SET DECIMALS TO 2 and inputmask of 999.99 in my field(s).
>
>Dan
Dan,
"Set decimals" is scoped to current data session, "set sysformats" might be tampering with , or something in between might be changing inputmask. On entry to control (gotfocus), you could debugout those to see current values. I don't think it's pure VFP6 problem but don't use VFP6 yet :(
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform