Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
InputMask issue.
Message
From
27/01/2005 12:30:04
 
 
To
27/01/2005 12:19:13
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00981243
Message ID:
00981268
Views:
26
Craig

I guess Fabio's saying that he'd expect the value, 123.1236, to round up to 123.124 (would expect 123.123 if value was 123.1233). So he has to use ROUND() to force it to obey the rounding rules of once past 5 - round up.

That right Fabio?

Personally I would use ROUND() to ensure correct rounding.

Terry

>I'm not sure what you're asking as you stated that the output you got was expected and preferred.
>
>The input mask does nothing to round. It states that you can input data that looks like what the mask defines. In your case, the mask says you can enter three digits to the left of the decimal point. It won't allow the fourth to even be entered. How could VFP even know about the fourth digit to round up?
>
>>It would appeal to to me to have some opinions on this issue:
>>
>>With this:
>>

>>InputMask = '99.999'
>>Value = 123.1236
>>

>>
>>Expected output:
>>123.123 or 123.124
>>
>>Preferred output:
>>123.123 or 123.124
>>
>>Observed VFP:
>>123.123
>>
>>This force me to use ROUND() in very many controls.
>>
>>Thanks
>>Fabio
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform