G
Guest
Hello ,
Does someone knows a simple way of how to get the nr of fraction digits ?
example :
1.23 would give a result of 2
1.234 would give a result of 3
Yes
I know i could split the number on the decimal seperator and then count the
characters in the second part of the resulting array , but i thought ,, there
should be another solution ?
the task should be simple but i am looking in all sorts of system math
classes but i am not seeing it ...
or should i go for the split method ?
regards
Michel
Does someone knows a simple way of how to get the nr of fraction digits ?
example :
1.23 would give a result of 2
1.234 would give a result of 3
Yes
I know i could split the number on the decimal seperator and then count the
characters in the second part of the resulting array , but i thought ,, there
should be another solution ?
the task should be simple but i am looking in all sorts of system math
classes but i am not seeing it ...
or should i go for the split method ?
regards
Michel