Timeline for Calculating number of digits in the integer part in a decimal number
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 3, 2017 at 5:49 | history | tweeted | twitter.com/StackSalesforce/status/827393579274248193 | ||
Jan 31, 2017 at 17:59 | answer | added | o-lexi | timeline score: 10 | |
Jan 31, 2017 at 17:40 | comment | added | SFDC Neuf |
This approach you are taking will not work for any numbers greater than 1000: format() will add in commas (or other characters, depending on your user's locale). For example, system.debug((12895.95).intValue().format().length()); will return 6 .
|
|
Jan 31, 2017 at 17:29 | answer | added | Adrian Larson♦ | timeline score: 4 | |
Jan 31, 2017 at 17:20 | history | asked | Vanilla_Sky | CC BY-SA 3.0 |