Skip to content

raylib.TextToFloat

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get float value from text NOTE: This function replaces atof() [stdlib.h] WARNING: Only '.' character is understood as decimal point

Parameters

Parameter Default Value Note
text

Return value

Condition Return Value
(always) number

Notes

Example

val = raylib.TextToFloat("3.14")
print val   // 3.14

Clone this wiki locally