Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > FRAC

 

 

Purpose

FRAC returns the fractional part of a numeric expression.
 

Syntax

variable = FRAC(operand)
 

Operation

operand is any valid numeric constant, variable, or expression.
 

Remarks

The value returned has the same precision and sign as the operand.
 

Example

Assume that #A = 1.2,  #B = 0.235, and #C = -4.5.

#I = FRAC(#A)      sets #I to 0.2
#I = FRAC(#B)      sets #I to 0.235
#I = FRAC(#C)      sets #I to –0.5
 

Comment on this topic

Topic ID: 520060

 
 
 

Table of Contents

Index

Glossary

-Search-

Back