Maybe my wording is not clear so I am trying to explain by example:
- if I have a double like 123.4567 I would like to format it as 123
- if I have a double like 12.34567 I would like to format it as 12.3
- if I have a double like 1.234567 I would like to format it as 1.23
Of course I can do this with a switch/case statement but I am wondering if is there any built in or utility formatting, what can do this out of the box.
Thanks in advance