numbers with decimal places are appearing in the text output file (1 Viewer)

Vinod9111

New member
Local time
Tomorrow, 04:29
Joined
Sep 4, 2020
Messages
19
Hi all,

Am facing a issue while generating text output , two fields which are in number format getting populated with decimal place.
I wanted the output without decimal places, to achieve that I had rounded off the field to zero but still decimal with two zeroes is being generated.

Any ideas how to fix this will save me from lot of pain.

regards
Vinod
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 17:59
Joined
Feb 28, 2001
Messages
27,129
It depends on how you are displaying those number fields. Can you gives a little bit of context about how and where they appear, as well as what should happen if the numbers aren't zero? Without knowing what you are attempting (mechanically) it is very hard to advise you what to do to fix that problem.
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 23:59
Joined
Sep 12, 2006
Messages
15,634
if a number is stored as currency or double, then the default will be to show it on a report in the same way.

You will need to set to the display format on the report to fixed, 0 decimal points to achieve what you want.
Note that displaying as a whole number won't change the actual number which is stored in the database.
 

Users who are viewing this thread

Top Bottom