HP Prime for All
English
Русский
News
Hardware
Articles
Docs
HP Apps
Software
Docs
:
Commands
:
trunc
Syntax
trunc(Real, [Integer]) or trunc(List, [Integer])
Description
Truncates a value to n decimal places (by default n=0).Accepts complex numbers.
Example
trunc(4.3) returns 4 trunc({3.25, 8.71, 9.01},1) returns {3.2, 8.7, 9.}
trunc — Discussion
↑Back to top