decimal format with decimal places 4... how?

julkifli33
Member Posts: 1,092
I have decimal = 324.6380
but i want to show as 324.6400
if I have decimal = 324.64
i also want to show as 324.6400
how to set the format???
but i want to show as 324.6400
if I have decimal = 324.64
i also want to show as 324.6400
how to set the format???
0
Comments
-
Where do you have to show the value? Dataport, Report, etc?
Regards
Thomas0 -
sourceexpr: round(mydecimalfield/variable;0.01)
decimalplaces: 4:4
If you fill these in into your textbox on your report and/or form (doesn't matter where), you will have for
345,648 -> 345,6500
and for
321,1 -> 321,1000
So both your questions are solved with these 2 properties.
Since you want to round the numbers, I assume it is for output only. If you want to edit the numbers, please don't round them.
[edit] I stand corrected, and modified my mistakes0 -
round(mydecimalfield/variable,2)
No, this is wrong.round(mydecimalfield/variable,0.01)
is correct, of course, only if the editbox is only for viewing (read only).0 -
Like I said on DUG, the numbers 324.6380 and 324.6400 are two completely different numbers. Representing the number 324.6380 as 324.6400 is mathematically incorrect, and financially it can lead to pretty severe rounding differences.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions