{"id":"runtime--Math.ClampFloat","name":"Math.ClampFloat","owner":"yeho","package":"runtime.Math","kind":"builtin","signature":"Math.ClampFloat(float value, float low, float high) -> float","description":"Keep a floating-point value inside the supplied lower and upper limits.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"value","type":"float","description":"Supply value as float.","rule":"Float32"},{"name":"low","type":"float","description":"Supply low as float.","rule":"Float32"},{"name":"high","type":"float","description":"Supply high as float.","rule":"Float32"}],"returns":"float","members":[],"tags":["builtin","cpu","math","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":881,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call Math.ClampFloat","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"float value = 1.0\nfloat low = 1.0\nfloat high = 1.0\nfloat result = Math.ClampFloat(value, low, high)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__math_clampfloat\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"d6447e2f9ffddeff5a1ea2a3ff2292167b17a6c712e02acb21eedd9f27078ee9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Math.ClampFloat","json":"https://demonhunterlabs.com/reference/items/runtime--Math.ClampFloat.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Math.ClampFloat.md"}
