on 05-16-2016 11:22 AM
Why does crystal round properly
I am doing a simple calculation
1 x £1.425 and it is giving me £1.42 when i need £1.43??
Please can anyone help?
Thanks
Mike
Hi Riraj,
Where did you go to type in your formula will try the same my end.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a new formula on your Crystal report available on the right hand side of Crystal Report Editor under Formula Fields and just select the field which you want to be rounded in pace of {Table.NumberField} in below code. Then just drag that formula to the report
Round({Table.NumberField},2)
Regards
Niraj
Hi Niraj,
Sorry but what I would like is this rule
Greater or = 0.005 then round up
Less than 0.005 then round down.
So 1 x £1.425 should be £1.43
and 1x£1.424 should be £1.42
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mike,
Please right click on that number field and set the number format to three place decimal.
By default its 2 places decimal.
Regards
Niraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.