Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Currency field with 4 decimals in report
Message
From
13/06/2023 09:23:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/06/2023 09:21:44
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01686730
Message ID:
01686732
Views:
45
>>Hello all,
>>
>>In my report I have currency fields. There are 4 decimals for those fields. How can I have only two decimals?
>>
>>Thanks in advance.
>
>#1 is this CURRENCY as field type or just a number with four decimals?
>#2 Try to format it. The report field edit form offer fields for this. Format expression like 999999.99. See Format Expressions for Field Controls in vfp help. Check if the result is as expected (problems with rounding?)

Use round(myCurrencyField,2) as the expression, in that case.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform