use inline to avoid duplicate symbol when linking
correct the test, currently float precision default is 6.
start to add test for integers format