EDIT: For DBP, forgot to put it in...
I made this for a little program im making because i couldnt find one on here that really worked, especialy with floats...
FUNCTION Percent(StartVal AS FLOAT,Percent AS FLOAT)
Result#=(StartVal*Percent)/100
ENDFUNCTION Result#
its best used with floats..
usage can be like -
which would return 50 (u could use any other number also, 200% would double it and make 200)
you could also use it to take away a percentage from a number like so
A#=A#-Percent(A#,1.2)
PRINT A#
as you can see it can be pretty useful for multiple things..
C&C Welcome