how to support fixed-point number?
yafacex opened this issue · comments
yafacex commented
how to support fixed-point number gracely?I want to ensure calculate consistency in different devices.
especially when i use flecs-cs, one decimal both stores in c and c#.
Sander Mertens commented
You can override the type flecs uses for tracking time with an integer type (defined here https://github.com/SanderMertens/flecs/blob/master/include/flecs.h#L42), for example:
#define ecs_ftime_t uint64_t
yafacex commented
You can override the type flecs uses for tracking time with an integer type (defined here https://github.com/SanderMertens/flecs/blob/master/include/flecs.h#L42), for example:
#define ecs_ftime_t uint64_t
thanks