DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

Frac- Returns the fractional portion of a number

Function that returns the fractional part of a floating point number.

- Frac(N): float

Parameters:

- (float) N: floating point number.

Description:

Use the Frac function to derive the fractional part of a number.

Examples:

// N contains the value 1.5

N = 1.5

// Stores in R the fractional part of N

R = Frac(N)

// Shows the variable R, i.e. the fractional number 0.5

MsgBox(R)