---
url: /flow/guide/scripting-reference/functions/numeric/frac.md
---

# Frac

## Declaration

`function Frac(const X: Extended): Extended`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Frac(123.45); //result is 0.45
end;
```

## Description

Retuns the fractional portion of a decimal number.

Refer to [Int](/flow/guide/scripting-reference/functions/numeric/int) for a function that returns the integer part of a decimal number
