
February 10th, 2013, 05:58 PM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 3
Time spent in forums: 59 m 27 sec
Reputation Power: 0
|
|
|
A little help, new to programing.
i am working on a program Gic Calculator.
i have a question.
Quote: | TSX rate = (107-100)/100 = 7%. |
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
thanks
|