[Tutor] Percentage

Sean Perry shaleh at speakeasy.net
Fri Nov 11 09:37:43 CET 2005


Johan Geldenhuys wrote:
> Hi all,
> 
> What is the syntax if I want to work out what percentage 42 is out of 250?
> 

42 is x percent of 250.

(is / of) = (x / 100)

one of those formulas from school I will always remember.

(42 / 250) = (x / 100.0)
250x = 4200.0
x = 4200.0 / 250
x = 16.8%


More information about the Tutor mailing list