Regular expression:
example:
1. Float (2, 4) -------- [There are two decisions of four, namely **. **]
^ [0-9] {1,2} /. [0-9] {1,2}
2. Float (3, 5) -------- [There are two decisions of four, namely **. ***]
^ [0-9] {1,2} /. [0-9] {1,3}
3. Float (1, 3) -------- [There are two decimals of four, namely **. *]
^ [0-9] {1,2} /. [0-9] {1}
3. Float (2, 3) -------- [There are two decisions of four, namely *. **]
^ [0-9] {1} /. [0-9] {1,2}