Better stringifier for float attribute

fix #31