Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "ftos"

From Quake Wiki

(Created page with "====Syntax:==== <code>string ftos(float f)</code> Converts a float into a string to allow it to be printed to the console or displayed in a centerprint. ====Parameters:==== :...")
(No difference)

Revision as of 01:47, 26 March 2013

Syntax:

string ftos(float f)

Converts a float into a string to allow it to be printed to the console or displayed in a centerprint.

Parameters:

f - The float value to convert

Returns:

Returns a string representation of the float.

Other Details:

The string value returned by this function always points to the same area in memory. Running this function multiple times in the same frame will cause all strings to be set to the last float converted.