float_to_short

Converts a float value into a short.

Syntax

stock float_to_short(Float:value) return clamp(floatround(value * (1<<12)), 0, 0xFFFF)

Usage

value Float value to convert

Return

Value — converted to short

Defined in msgstocks.inc at line 2894 . This documentation was automatically generated from source.