MapleTA[Builtin] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : MapleTA Package : Builtin : MapleTA/Builtin/decimal

MapleTA[Builtin]

  

decimal

  

rounds a floating-point number to n decimal places

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

decimal(n, x)

Parameters

n

-

integer

x

-

numeric

Description

• 

The decimal command returns x expressed as a floating-point number rounded to n decimal places.

• 

Trailing zeros are truncated and not displayed.

Examples

MapleTA:-Builtin:-decimal3,20.8571

20.857

(1)

MapleTA:-Builtin:-decimal3,20.8579

20.858

(2)

Compatibility

• 

The MapleTA[Builtin][decimal] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

MapleTA

MapleTA,Builtin,int

MapleTA,Builtin,numfmt

MapleTA,Builtin,sig

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam