f::lcm (public)

 f::lcm x y

Defined in packages/acs-tcl/tcl/ad-functional-procs.tcl

Parameters:
x (required)
y (required)
Returns:
the least common multiple of x and y

Testcases:
functional_api
Source code:
    if { $x==0 || $y == 0 } { return 0 }
    abs [expr {$x/[gcd $x $y]*$y}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: