[Bug 1065] Added requirement to clamp or range-check numeric input where necessary