I have a floating point value, but when i need to represent to the user I need it to show to one decimal place, without rounding off. so basically i need to truncate to up to one decimal place.
for example
95.56 -> 95.5
I have a floating point value, but when i need to represent to the
Share
It should be like this
sudo code
convert number to string.
find “.” in string.
make a substring from start to “.” position +1