[DUG] Maths problem for the day
Ross Levis
ross at stationplaylist.com
Tue Jan 11 14:24:34 NZDT 2011
Convert the following into one line.
if High(Files) < 30 then Max := Bias.Position
else if High(Files) < 300 then Max := Bias.Position*2
else if High(Files) < 3000 then Max := Bias.Position*3
else if High(Files) < 30000 then Max := Bias.Position*4
etc
I think there must be a way. Probably using the Power function, but I can't
get my head around it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110111/2280e5dc/attachment.html
More information about the Delphi
mailing list