you can floor it or cast it to an int before casting it to a string.
if you wanted a few decimals, lets say “10.39”, you could multiply it by 100, floor it, then divide it by 100. that would round it down to the hundredths place.
you can floor it or cast it to an int before casting it to a string.
if you wanted a few decimals, lets say “10.39”, you could multiply it by 100, floor it, then divide it by 100. that would round it down to the hundredths place.