def test_round_to_float():
 assert (round_to_float(12.01934, 0.01) == 12.02)
 assert (round_to_float(12.01134, 0.01) == 12.01)
 assert (round_to_float(12.1934, 0.1) == 12.2)
 assert (round_to_float(12.1134, 0.1) == 12.1)
 assert (round_to_float(12.1134, 0.001) == 12.113)
 assert (round_to_float(12.1134, 1e-05) == 12.1134)
 assert (round_to_float(12.1934, 0.5) == 12.0)
 assert (round_to_float(12.2934, 0.5) == 12.5)

def test_round_to_float ( ) : assert ( round_to_float ( 12.01934 , 0.01 ) == 12.02 ) assert ( round_to_float ( 12.01134 , 0.01 ) == 12.01 ) assert ( round_to_float ( 12.1934 , 0.1 ) == 12.2 ) assert ( round_to_float ( 12.1134 , 0.1 ) == 12.1 ) assert ( round_to_float ( 12.1134 , 0.001 ) == 12.113 ) assert ( round_to_float ( 12.1134 , 1e-05 ) == 12.1134 ) assert ( round_to_float ( 12.1934 , 0.5 ) == 12.0 ) assert ( round_to_float ( 12.2934 , 0.5 ) == 12.5 )
test round to float function .