@intToFloat
@intToFloat
@intToFloat(comptime DestType: type, int: anytype) DestType
Converts an integer to the closest floating point representation. To convert the other way, use @floatToInt. This cast is always safe.
@intToFloat(comptime DestType: type, int: anytype) DestType
Converts an integer to the closest floating point representation. To convert the other way, use @floatToInt. This cast is always safe.
本文档使用 WanXiangYunDang 构建