View Single Post
Old 2nd May 2003, 14:54   #83
Jaheckelsafar
Major Dude
 
Join Date: Feb 2002
Location: home
Posts: 1,318
percent value

ll : lower limit
hl : higher limit
val : value

(val-ll)/(hl-ll)

gives a number between 0 and 1 for a number between the lower limit and the higher limit.

Stoke me a clipper. I'll be back for Christmas.

- Arnold Rimmer
Red Dwarf
Jaheckelsafar is offline   Reply With Quote