{"id":"dolphin.math--DolphinClampInt","name":"DolphinClampInt","owner":"dolphin","package":"dolphin.math","kind":"function","signature":"external DolphinClampInt(int value, int minimum, int maximum) returns int","description":"Dolphin clamp int.","context":"Use deterministic scalar and 2D geometry helpers with explicit finite-input bounds.","parameters":[{"name":"value","type":"int","description":"Supply value as int."},{"name":"minimum","type":"int","description":"Supply minimum as int."},{"name":"maximum","type":"int","description":"Supply maximum as int."}],"returns":"int","members":[],"tags":["cpu","dolphin","dolphin.math","function","math","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/math/src/math.yh","line":33,"sha256":"d2a23b9808124b6636b97b458b256370a948af66f1f376c4e9ae4e2b40dd17a6"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use DolphinClampInt","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using dolphin.math\n\n// Use deterministic scalar and 2D geometry helpers with explicit finite-input bounds.\nint value = 1\nint minimum = 1\nint maximum = 1\nint result = DolphinClampInt(value, minimum, maximum)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_math__dolphinclampint\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"ecba0f2b1a0265bb02d0332894563d754ecb1d369149e48d266c9f85698ce3f7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.math--DolphinClampInt","json":"https://demonhunterlabs.com/reference/items/dolphin.math--DolphinClampInt.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.math--DolphinClampInt.md"}
