# Get base10 mantissa and exponent of real (eg Float64)

**URL:** https://discourse.julialang.org/t/get-base10-mantissa-and-exponent-of-real-eg-float64/121529
**Category:** General Usage
**Tags:** question, float
**Created:** [October 21, 2024, 11:52am UTC](https://discourse.julialang.org/t/get-base10-mantissa-and-exponent-of-real-eg-float64/121529 "2024-10-21T11:52:29Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [October 21, 2024, 12:53pm UTC](https://discourse.julialang.org/t/get-base10-mantissa-and-exponent-of-real-eg-float64/121529/5 "2024-10-21T12:53:42Z")

</div>

> [@barucden](#):
>
> Is this the result you expected?

Technically you are right, but I am after a string which I can just cut off at some point and insert a decimal dot, so I am flexible.

The point of the exercise is for _printing_, into LaTeX. That is, I want to generate output like `raw"$4.92 \cdot 10^{-3}$"` and `raw"$22.71 \cdot 10^{6}$"` (engineering notation).

---

_[View the full topic](https://discourse.julialang.org/t/get-base10-mantissa-and-exponent-of-real-eg-float64/121529)._
