C++ implementation
C implementation: Refactor float point number dumping