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

float

float( 
n_arg 
) 
=> f_result

Description

Converts a number into its equivalent floating-point number.

Arguments

n_arg

Integer to be converted to floating-point. If you give a floating-point number as an argument, it returns the argument unchanged.

Value Returned

f_result

A floating-point number.

Examples

float(3)    
=> 3.0
float(1.2)  
=> 1.2

Related Topics

fix

fixp

floatp

Arithmetic Functions


Return to top
 ⠀
X