frac() (Game Maker)

## frac()

(Game Maker 1.1, 6.1, 7)

** frac** - return the decimal fraction of a number

## Description

`num = frac( num )`

`rnum`- returned fraction`num`- number with fraction

** frac()** returns the decimal fraction of a number, in other words, the part past the decimal point.

## Examples

### Example of Use

`fraction = frac(99.87);`

In this example, the value of `fraction` will be `0.87`.

page revision: 12, last edited: 30 Jun 2012 15:32