NUM$

Contents


"num$" transforms a number to a character string containing its decimal representation.

 

Syntax

num$( exp_num )

 

Parameters

Element

Description

Restrictions

exp_num

Numerical expression.

None.

 

Examples

CHAINE = num$(1.186*SOLDE)

# The next instruction will identify the string 1e37
Infbox num$(1e37)

 

Description and comments

"num$" returns the decimal representation of a number as a character string. No space is added before or after the number; the decimal separator is still the point (unlike the result with the "format$" function).

When the argument exceeds 10^36, the display appears in scientific notation.

The result is a Char type.

 

Associated errors

Error

Description

ERMODE (10)

The argument is not a numerical type.

 

Associated key words

VAL - FORMAT$


CONTENTS


Copyright © Sage 1999 - 2007