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
precision

Partial Call Graph (max 5 caller/called nodes):
%3 dt_widget_datetime dt_widget_datetime (public, deprecated) dt_round_to_precision dt_round_to_precision dt_widget_datetime->dt_round_to_precision

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

[ hide source ] | [ make this the default ]
Show another procedure: