Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

modf

modf( 
f_flonum1
f_flonum2 
) 
=> f_result

Description

Returns the floating-point remainder of the division of f_flonum1 by f_flonum2.

Arguments

f_flonum1

A floating-point number (Dividend).

f_flonum2

A floating-point number (Divisor).

Value Returned

f_result

Floating-point remainder of the division.

The sign is determined by the dividend.

Examples

;; Sign is determined by the dividend
modf(-10.1 10.0)
=> -0.1
modf(10.1 -10.0) 
=> 0.1

Related Topics

mod

modulo


Return to top
 ⠀
X