Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 643 Bytes

fract.adoc

File metadata and controls

41 lines (24 loc) · 643 Bytes

fract

Fractional value in x.

gentype fract(gentype x,
              gentype *itpr)

Description

Returns fmin(x - floor(x), 0x1.ffcp-1f ). floor(x) is returned in iptr.

Notes

The min() operator is there to prevent fract(-small ) from returning 1.0. It returns the largest positive floating-point number less than 1.0.