February 10th, 2013, 06:58 PM
A little help, new to programing.
i am working on a program Gic Calculator.
i have a question.
that is the req, but if it do (107-100)/100 i get 0.07 (using float)
I need to print out 7%, but the way i know is to multiply it by 100 to convert it to %. is their any way to print it with format like %.2f
February 10th, 2013, 07:31 PM
is their any way to move decimal places forward?
thanks, please reply.
February 10th, 2013, 08:22 PM
is there anyone who knows???? 30+ views but no reply? :(
is it even possible? plz tell me
Comments on this post
February 10th, 2013, 08:57 PM
You move the decimal point to the left by dividing by powers of 10. And to the right by multiplying.