# Using a literal 0 in NumberFormat

**URL:** <https://forum.inductiveautomation.com/t/using-a-literal-0-in-numberformat/112133>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 12, 2025, 6:42pm UTC](https://forum.inductiveautomation.com/t/using-a-literal-0-in-numberformat/112133 "2025-11-12T18:42:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgratz](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dgratz](https://forum.inductiveautomation.com/u/dgratz)\
**Post date:** [November 12, 2025, 6:42pm UTC](https://forum.inductiveautomation.com/t/using-a-literal-0-in-numberformat/112133/1 "2025-11-12T18:42:53Z")

</div>

I’m attempting to use a Spinner component with the NumberFormat property. When I make the value some combination of regular format and literals (like “## radians”), it works as expected, populating the word “radians” after my number.

However, I have an instance where I want to use the number 0 in my format (“/100” as the label). I can successfully use other numbers (“/7” works), but the result treats the zeros as part of the code of the format, signifying required digits.

Is there a way to include the literal zero in the format, or do I just need to cut my losses and stick a label outside the component?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/482682edc8e67fab107ffda7de55a300d702a159.png)

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 12, 2025, 6:47pm UTC](https://forum.inductiveautomation.com/t/using-a-literal-0-in-numberformat/112133/2 "2025-11-12T18:47:09Z")

</div>

~~Usually, you can force digits by replacing `#` with `0`~~

EDIT: I misread your question, you meant on the /100 part.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [November 12, 2025, 6:54pm UTC](https://forum.inductiveautomation.com/t/using-a-literal-0-in-numberformat/112133/3 "2025-11-12T18:54:43Z")

</div>

Does `###/1'00'` work? Maybe `###'/100'` would be better(More clearly indicates its a label/suffix).

> **[DecimalFormat (Java SE 11 & JDK 11 )](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/DecimalFormat.html)**

---

<div class="post-metadata">

**Author:** ![dgratz](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dgratz](https://forum.inductiveautomation.com/u/dgratz)\
**Post date:** [November 12, 2025, 7:14pm UTC](https://forum.inductiveautomation.com/t/using-a-literal-0-in-numberformat/112133/4 "2025-11-12T19:14:05Z")

</div>

I had tried this with double quotes without success. The single quotes seem to work better. Thank you!
