Change `int` for number type
Get call stack only when call stack is more than 0
Insert static_cast for floating point number