Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRANFORM() Behavior ... changed from SP1 ???
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00616533
Message ID:
00616800
Views:
41
Try to explaind following
? Transform(10.00)
>I have to weigh in on the 'not a bug' side. Maybe it's my science and engineering background. A field spec of NUMERIC(10,2) means two places after the decimal. The PROPER representation then, of 10.2 is exactly what the TRANSFORM produces, 10.20.
> That said, they should have told us (or kept the docs more in line with actual behavior?), we shouldn't have had to gone through headscratching and posting on a public forum to realize the behavior has changed.
>
> Randy
>
>>I have this common lines:
>>
>>CREATE CURSOR test(Num NUMERIC(10,2))
>>APPEND BLANK
>>REPLACE Num WITH 10.2
>>
>>
>>In VFP 6.0 if i issue this command:
>>? TRAN(Num) i have this result 10.2
>>
>>In VFP 7.0 SP1, witnh the same command i have this result 10.20 .... i supect that this behavior is changed from SP1 ... anyone can confirm this supect ? .. and is a Feauture or is an Introduced Bug ??
>>
>>Emanuele
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform