@nugget "Since std is not open source" - what? The C++ standard (which is what specifies what std::trunc and everything else should do) is publicly available and several implementations (by GNU, LLVM and others) are available as Open Source. Sure, there are also commercial implementations, but even Microsoft's implementation is freely available. So, what are you on about? What you are saying here makes no sense.