dt_round_to_precision (private)
dt_round_to_precision number precision
Defined in packages/acs-datetime/tcl/acs-datetime-procs.tcl
Rounds the given number to the given precision, i.e. calendar_round_to_precision 44 5 will round to the nearest 5 and return 45, while calendar_round_to_precision 32.678 .1 will round to 32.7.
- Parameters:
- number (required)
- precision (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: return [expr {$precision * round(double($number)/$precision)}]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-datetime/tcl/acs-datetime-procs.xql