# exponent

exponent(x) -> Int

Get the exponent of a normalized floating-point number.

## Examples

``````julia> exponent(2.5)
1

julia> exponent(0.125)
-3

julia> exponent(10.0)
1``````

In Julia, the `exponent` function returns the exponent of a normalized floating-point number. It takes a single argument `x` and returns an integer `n`.

Here are some examples of how the `exponent` function can be used:

1. Get the exponent of a positive number:

``````julia> exponent(2.5)
1``````

The exponent of the normalized floating-point number `2.5` is `1`.

2. Get the exponent of a negative number:

``````julia> exponent(0.125)
-3``````

The exponent of the normalized floating-point number `0.125` is `-3`.

3. Get the exponent of a whole number:
``````julia> exponent(10.0)
1``````

The exponent of the normalized floating-point number `10.0` is `1`.

Please note that the `exponent` function is specific to normalized floating-point numbers. It may not give meaningful results for other types of inputs.

If you have a non-normalized floating-point number or a different type of input, the behavior of `exponent` may not be as expected.

It's important to ensure that the input to the `exponent` function is a valid normalized floating-point number to get accurate results.