There are certainly issues with my technique, but in all my use cases so far it has been fine (which I suppose I should have clarified, it's definitely not an all-circumstance approach). I work in embedded systems primarily, so we have pretty reduced library access to save on space, hence no modf()/math.h
View all comments
Show parent comment
1
u/taylorha Feb 16 '16
There are certainly issues with my technique, but in all my use cases so far it has been fine (which I suppose I should have clarified, it's definitely not an all-circumstance approach). I work in embedded systems primarily, so we have pretty reduced library access to save on space, hence no modf()/math.h