[Tutor] Percentage

Jorge Godoy godoy at ieee.org
Mon Nov 7 14:50:05 CET 2005


Johan Geldenhuys <johan at accesstel.co.za> writes:

> What is the syntax if I want to work out what percentage 42 is out of 250?

If you want it as a factor to multiply / divide by something:

perc = 42/250

If you want it to "read" as percentage:

perc_100 = (42/250)*100


Sds,
-- 
Jorge Godoy      <godoy at ieee.org>



More information about the Tutor mailing list