Decimal number format
 
            
                
                    monteiro                
                
                    Member Posts: 26                
            
                        
            
                    Hi everybody!
I tried to format a decimal number to get "76543.21" using:
FORMAT("Credit Limit LCY)",0,'<Integer><Decimals><1000Character,.>')
This is the Navision help file syntax, but not working... the result was: "76543,21" (comma instead of dot). And if I have "zero", the result is only "0" but I need "0.00".
What's the correct syntax?
Thanks in advance,
Monteiro
                I tried to format a decimal number to get "76543.21" using:
FORMAT("Credit Limit LCY)",0,'<Integer><Decimals><1000Character,.>')
This is the Navision help file syntax, but not working... the result was: "76543,21" (comma instead of dot). And if I have "zero", the result is only "0" but I need "0.00".
What's the correct syntax?
Thanks in advance,
Monteiro
Monteiro, Rodrigo
www.draeger-medical.com
www.draeger-medical.com
0                
            Answers
- 
            Where is this display being sent to ? Is it for a report or is it in a form.
 If you look at the properties value of the field you can set it to always appear as 2 decimal places which i believe is what you want ?0
- 
            Hi jannestig,
 It's a dataport code. I have a DataItem (Customer table). I can't choose the fields properties... see that:
 T_LIMITE_CREDITO := FORMAT("Credit Limit (LCY)",0,'<Integer><Decimals><1000Character,.>');
 Thanks,
 MonteiroMonteiro, Rodrigo
 www.draeger-medical.com0
- 
            IF you search in Mibuso for Decimal rounding solutions
 this one looked llike what you want.
 MESSAGE('%1',FORMAT(10000.1,0,'<Precision,2:2><Standard Format,2>'));1
- 
            jannestig,
 This is what I was looking for. Thank you so much!
 Regards,
 MonteiroMonteiro, Rodrigo
 www.draeger-medical.com0
- 
            If you simply change the DecimalPlaces Property of the field in Table then also it will workThanks and Regards
 Rishi0
- 
            
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
- 323 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

