Skip to content

Flow documentation · legacy product

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 for a function that returns the integer part of a decimal number