Skip to main content
Rocko
RockoAnswer
19-Tanzanite
Jun 24, 2024 1:57 PM UTC

Decide if you want to use a number type or a string. the number 0500 has the same value as 500.

You could store as a number and convert it to have a leading zero if you need to display it, or you can store it as a string with the leading zero(es), and parse it into a number when you need to make computations.

2 replies

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Jun 24, 2024 1:57 PM UTC

Decide if you want to use a number type or a string. the number 0500 has the same value as 500.

You could store as a number and convert it to have a leading zero if you need to display it, or you can store it as a string with the leading zero(es), and parse it into a number when you need to make computations.

Translate
Community Moderator
Jun 28, 2024 3:16 AM UTC

Hello @AP_10343008, 

 

It looks like you have a response on your topic. If it helped you answer your question please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Community Moderation Team.

Translate