In statistics, is there a formula to find the class interval with decimal data without approximation?

I don't want to align the data, I want to find the class interval, to write a class with decimals and the number that follows is also decimal