In this example, we are going to generate the infinity value by multiplying number.maxvalue with 2. See the code snippet:
number.maxvalue