double to float constant
wrapped the cs code in a namespace