Decimal Digit
Hello,
I have following value in my report
1.2
1
1.234
how can I show above value
when I set decimal digit to 3
I see
1.200
1.000
1.234
I found a way :
before Textbox print
I set the value with value.tostring(#.#,###)
Is there a better way?
I have following value in my report
1.2
1
1.234
how can I show above value
when I set decimal digit to 3
I see
1.200
1.000
1.234
I found a way :
before Textbox print
I set the value with value.tostring(#.#,###)
Is there a better way?
Comments
If you need to print the values as they are, set format to "General". You will get the following output:
1.2
1
1.234
1.200
1.000
1.234
as a note : My filed type is Decimal.
34
62.5
18
Make a simple report with one text object. Create the BeforePrint event handler for this object:
What do you see when you run a report? I see
1.2
in demo I see correct format
but when Assign my dataset or create a new report with Sql script
if I have decimal field, encounter same problem
(if I select custom format to #,0.#### it works )