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

printf

printf( 
t_formatString 
[ g_arg1 ... ] 
) 
=> t

Description

Writes formatted output to poport.

The optional arguments following the format string are printed according to their corresponding format specifications.

printf is identical to fprintf except that it does not take the p_port argument and the output is written to poport.

Arguments

t_formatString

Characters to be printed verbatim, intermixed with format specifications prefixed by the % sign.

g_arg1

Arguments following the format string are printed according to their corresponding format specifications.

Value Returned

t

Prints the formatted output and returns t.

Examples

x = 197.9687 => 197.9687
printf("The test measures %10.2f.\n" x)

Prints the following line to poport and returns t.

The test measures            197.97. 
=> t

Related Topics

Common Output Format Specifications

fprintf

println


Return to top
 ⠀
X