My textbook has a photonics example problem, where the absorbed light energy density is calculated as
$$\Psi = 25 \times 9.55 = 238.75 \text{mJ/cm$^3$} = 2.38 \times 10^5 \text{J/m}^3$$
I'm new to physics, so I'm trying to understand how unit conversions work.
I had
$$\Psi = 238.75 \text{mJ/cm}^3 = 2.38 \times 10^2 \text{mJ/cm$^3$} = 0.00238 \times 10^2 \text{J/cm$^3$} = 2.38 \times 10^5 \text{J/cm$^3$}$$
Now, given the difference between my (incorrect) solution and the textbook solution, I'm speculating that there is some sort of "dimensionality" issue with the units, where if I change the numerator to Joules, then to maintain the correct (let's call it) "dimensionality ratio", then I must also change the denominator to metres? What is the rational for this?
As I said, I'm new to physics, so I'm not sure what the correct terminology is here to articulate my thoughts, but I think what I've stated is close enough to be understandable.
I would appreciate it if people could please take the time to clarify this.