Overview
| Artifact ID: | 5a4e18d5220bd74b49700a9f2b1863a762cbc589 |
|---|---|
| Ticket: | 3564821fffffffffffffffffffffffffffffffff
math rounding function with arbitrary decimal precision |
| User & Date: | jmcuaz on 2012-09-04 21:22:46 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
When dealing with floating point numbers, there is no easy way in tcl to do something like "round( 2.125 , 2 )" with an expected return of 2.13 For the choice of upward/downward rounding (i.e. toward inf+ or inf-) and to disambiguate the semantic of rounding on negatives fp numbers, maybe two separate functions would be good : something like roundup(x,y) -> toward inf+ rounddown(x,y) -> toward inf- Regards Jean-Marie Cuaz
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jmcuaz"
- subsystem changed to: "48. Number Handling"
- title changed to:
math rounding function with arbitrary decimal precision
- type changed to: "RFE"