trunc(x) and trunc(x,y)
Issue #40
closed
Originally reported on Google Code with ID 40
Add trunc(x) function, aliasing to int(x). This is because some calculators
use trunc and others use int, there's no standard terminology, so support both.
Reported by helder.pereira.correia
on 2007-05-21 23:22:49
Comments (4)
-
Account Deleted -
Account Deleted ``` Implemented in trunk, will be available in 0.8. ```
Reported by `helder.pereira.correia` on 2007-05-23 00:44:03 - Status changed: `Fixed`
-
repo owner - changed milestone to 0.8
- changed component to functions
-
assigned issue to
- edited description
-
repo owner - changed status to closed
- Log in to comment
``` Let's change this a bit:
trunc(x) -> int(x) trunc(x,0) -> trunc(x) trunc(x,y) -> <int(x)>.<y-digits>
y = (non-negative) number of decimal digits to the right
See http://en.wikipedia.org/wiki/Truncation ```
Reported by `helder.pereira.correia` on 2007-05-22 23:50:20