{"id":"dolphin.math--DolphinFloorToInt","name":"DolphinFloorToInt","owner":"dolphin","package":"dolphin.math","kind":"function","signature":"external DolphinFloorToInt(float value) returns int","description":"Kyber currently exposes deterministic round-to-int but not floor-to-int. The bounded input contract keeps the intermediate safely inside int32.","context":"Use deterministic scalar and 2D geometry helpers with explicit finite-input bounds.","parameters":[{"name":"value","type":"float","description":"Supply value as float."}],"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":63,"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 DolphinFloorToInt","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.\nfloat value = 1.0\nint result = DolphinFloorToInt(value)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_math__dolphinfloortoint\"\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":"38c03550f40c2ac78f1a54cb7d34db545d907f25987e0585cf275c006452b60f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.math--DolphinFloorToInt","json":"https://demonhunterlabs.com/reference/items/dolphin.math--DolphinFloorToInt.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.math--DolphinFloorToInt.md"}
