number -> float, pair function