====== pears.TempRatePrecision ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
create function "pears"."TempRatePrecision"(
/* Application Maintained Function / Procedure - DO NOT EDIT*/
in "TempUnits" numeric )
returns numeric
begin
declare "rv" numeric;
select if "isnull"("TmpRatePrecision",0) = 2 then "iqmoneyround"("TempUnits") else "round"("TempUnits","TmpRatePrecision") endif into "rv";
return "rv"
end