working for decimal numbers