Count Decimal Places

Count Decimal Places

From
Slack
Status
Updating
Share
Entries

Decimal Places

contains(format(prop("Number")), ".") ? length(replace(prop("Number"), "^([^.]+.)", "")) : 0
contains(format(prop("Number")), ".")
Check to see if Number contains a period.
? length(replace(prop("Number"), "^([^.]+.)", ""))
If it does, first replace all characters up to and including the period with nothing and then calculate the length of the remaining digits.
: 0
If Number doesn't contain a period, display 0.
 
By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!
By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!