Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Setting the length of a float

$
0
0
Okay this is a noob question kind of.. I have a float that is appearing on the screen as "0.000000", and I want it to just appear as "0.0", with only one number to the right of the decimal sign.. How can I go about setting the length like that?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>