Blitz maths question...

Blitz3D Forums/Blitz3D Beginners Area/Blitz maths question...

This is another stupid question, and i'm sure your going to laugh..

How do i get a number by percentage...

like i want to retrieve the number 25...

like somthing like this:

Print "grabbing 25 percent of 1000.."
Print GrabNumberPercent(25,1000);Should Return 250.


waitkey()

Function GrabNumberPercent(Percentage,Number)
 Return Some+Math+with+Percentage-and*Number
End Function