Code archives/Algorithms/QLimit

This code has been declared by its author to be Public Domain code.

Download source code

QLimit by Neochrome2003
This function basically just limits the values you use
IE.
e=45
retval = QLimit(e,0,30)

retval is 30.

This is a cheap nock off from Marks Blitz 2 Amiga QLimit command, Very handy!!
Function QLimit(Quick,Low,High)
   If Quick>High then Quick=High
   If Quick<Low then Quick=Low
   Return Quick
End function

Comments

None.

Code Archives Forum