LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Format to Without Space Between Number and Unit


@alexderjuengere wrote:

@Yamaeda wrote:

[...]

Attempt 2 🙂

 

[...]


never surrender ; )


"Never give up, never surrender!"

"It's inside out. And it exploded."

"By Grabthars hammer, you shall be avenged." 

 

I bet many of you easily pick those references, and if not, you're missing out on a great movie in your lifes. 🙂

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 21 of 29
(230 Views)

Attempt 3, combine with some other/earlier ideas:

Yamaeda_0-1777023242990.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 22 of 29
(226 Views)

@Yamaeda wrote:

Attempt 3, combine with some other/earlier ideas:

Yamaeda_0-1777023242990.png

 


If anyone else is confused by the {} in the format string, from the format into string help file:

Basjong53_1-1777024078716.png

And

Basjong53_2-1777024099903.png

 

Nice solution!

Message 23 of 29
(214 Views)

In Python you can apparently add ! or !! to the format specifier to handle space before suffix. In this case it would have simply been %p! as format. Maybe that should be a suggestion.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 24 of 29
(185 Views)

@Yamaeda wrote:

@alexderjuengere wrote:

@Yamaeda wrote:

[...]

Attempt 2 🙂

 

[...]


never surrender ; )


"Never give up, never surrender!"

"It's inside out. And it exploded."

"By Grabthars hammer, you shall be avenged." 

 

I bet many of you easily pick those references, and if not, you're missing out on a great movie in your lifes. 🙂


You lost me.

 

 

 

(it's another quote, lol)

0 Kudos
Message 25 of 29
(159 Views)

Maybe a malleable VI would be useful?

 

I'm limping along on 2016, so can't test anything out 😞

 

0 Kudos
Message 26 of 29
(155 Views)

@GerdW wrote:

Hi Yamaeda,

 


@Yamaeda wrote:
When i went to school we often wrote it without space. It seems it's standardized to a space nowadays.

"Nowadays" is atleast 30 years old (when I wrote my diploma thesis)!

 

That's the German regulation, I already linked to the NIST rules in message #2.


It is also described in CMOS, which is "reference" for me:

Screenshot 2026-04-24 19.55.39.png

 

Message 27 of 29
(149 Views)

@Yamaeda wrote:

In Python you can apparently add ! or !! to the format specifier to handle space before suffix. In this case it would have simply been %p! as format. Maybe that should be a suggestion.


Same in Rust — can be easily done with si module or si_scale crate with almost a single line of code.

Message 28 of 29
(138 Views)

Yeah, i'm getting old. I guess the magical "usually" carries a heavy load in that sentence. 🙂

I remember some style guide saying "space when writing on a machine, no space when writing with a pen". But that was ~30 years ago.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 29 of 29
(70 Views)