Print 1234 as 12.34

in C++, what would i use to print "1234" (an integervalue) as "12.34" , reletively painlessly.


Last edited on
float(x)/100.0f

For more accuracy: <<(x/100)<<'.'<<(x%100)
Last edited on
tytytytyyty
Topic archived. No new replies allowed.