Posted By: physical_love
conversion float - 08/21/20 08:45
hi,
There are these in the adll header but float-> var does not exist. (float to var)
can someone tell me how to do this?
Code
inline var _VAR(int i) { return i<<10; } // int -> var inline var _VAR(double f) { return (var)(f * (1 << 10)); } // double -> var, overloaded inline int _INT(var x) { return x>>10; } // var -> int inline float _FLOAT(var x) { return ((float)x)/(1<<10); } // var -> float
There are these in the adll header but float-> var does not exist. (float to var)
can someone tell me how to do this?