5 replies
by peyison
For a number that large, your best bet is to make the data type text. The problem is that even though a double can handle very large numbers, if the number is too big you start losing precision. In other words, the numbers will start to round and you'll lose the last digit or more. If I enter the number 12345678876543231 in a double field, it actually displays 1234567887654320.
The other benefit of using text is that you can use an input mask. With the double, you'd have to use the format property.
The problem with using text is the sorts won't work very well.
The list:
1
2
3
10
21
will sort like this if the field is text:
1
10
2
21
3
An option to fix this is to 0 fill the text:
01
02
03
10
21
Hope this helps.
by js6
by donq
by js6
by js6
This discussion is closed to new replies.
Trending Software posts
Sort by Trending