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

Partial Call Graph (max 5 caller/called nodes):
%3 test_functional_api functional_api (test acs-tcl) f::lcm f::lcm test_functional_api->f::lcm f::/ f::/ f::lcm->f::/ f::abs f::abs (public) f::lcm->f::abs f::gcd f::gcd (public) f::lcm->f::gcd

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: