04-15-2026 07:17 AM
The following yields "123m V" but I need "123mV". Is there a format specifier option that will inhibit the space between the number and the unit?
04-15-2026 07:35 AM - edited 04-15-2026 07:41 AM
Hi Paul,
@paul_a_cardinale wrote:
The following yields "123m V" but I need "123mV".
"Interesting" behaviour…
(I stopped using units more than 10 years ago.)
@paul_a_cardinale wrote:
Is there a format specifier option that will inhibit the space between the number and the unit?
Not that I know of.
You could strip the unit before the FormatIntoString function and include the "V" in the format string. Then you would get "123mV"…
Btw. the ISO standard for creating text with "values with physical units" requires a space between value and unit ("123 mV"). See this (item #15)! (I typically use a nbsp in text editors…)
04-15-2026 07:36 AM - edited 04-15-2026 07:36 AM
I remember submitting a related bug 10-15 years ago. I would have to dig around to see if I still have the scenario.
To your exact scenario, I just don't use units.

04-15-2026 07:55 AM
@crossrulz wrote:
I remember submitting a related bug 10-15 years ago. I would have to dig around to see if I still have the scenario.
To your exact scenario, I just don't use units.
This is what I used in multiple situations and swear by.
04-15-2026 11:37 AM
@crossrulz wrote:
I remember submitting a related bug 10-15 years ago. I would have to dig around to see if I still have the scenario.
To your exact scenario, I just don't use units.
This only works well without units on the value. (One of the reasons I never use units!)
The problem is that the OP uses units on the constant.
04-17-2026 12:31 PM - edited 04-17-2026 12:36 PM
If units are used, you can use the following format for an SI formatted value
%_3{V}p
04-17-2026 04:14 PM
@PhillipDBrooks wrote:
If units are used, you can use the following format for an SI formatted value
%_3{V}p
That moves the space, but doesn't eliminate it. Also, it only works if the physical quantity is voltage; doesn't work for other physical quantities.
04-20-2026 09:47 AM
It feels a bit cheap ... but
04-20-2026 09:57 AM
Unit agnoistic with space moved, but not suppressed.