blob: 1717baeec81e15743ece02e474ecb64b7c5f2b27 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 float to_float(int)
3 float to_float(string)
4 float to_float(float)
MG Mud User88f12472016-06-24 23:31:02 +02005
6 (float)<value>
7
Zesstra715ec202025-07-09 22:18:31 +02008DESCRIPTION
9 Ints are expanded to floats, strings are converted up to the
10 first character that doesnt belong into a float.
11 Floats are just returned.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013BUGS
14 The cast notation only works if the precise type of <value>
15 is known at compile-time. This will not be fixed - use the
16 function form instead.
MG Mud User88f12472016-06-24 23:31:02 +020017
Zesstra715ec202025-07-09 22:18:31 +020018SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020019 to_string(E), to_int(E), sscanf(E)