Topic: Digits After Decimal Piont

how to avoid extra digits in calculation method ???? see in snapshot

Post's attachments

Attachment icon untitled.bmp 914.97 kb, 432 downloads since 2018-10-28 

Re: Digits After Decimal Piont

Hi,
I think the easiest way is either
1.  change the object properties of the edit field to 'currency' and an 'accuracy' of 2 or 3 decimal places, depending on how accurate you want it (please see the attached example and screenshot); 
2.  initially define 'liters' in your data structure as currency to 2 or 3 decimal places.
Which way you choose depends on what best suits your application.
In both instances, it's important to remember that 'currency' is not actually a data type;  it is simply a 'real' data type with some formatting applied to it - the underlying data type ('real') doesn't get changed.
Derek.

Post's attachments

Attachment icon diesel.zip 442.25 kb, 320 downloads since 2018-10-28