Forum

Use of #.## in cust...
 
Notifications
Clear all

Use of #.## in custom format

6 Posts
4 Users
0 Reactions
135 Views
(@albos)
Posts: 2
New Member
Topic starter
 

What is the purpose of putting #.## in a custom format?

For example: custom format 0,00 gives the same result as #.##0,00 , so why use #.##?

 
Posted : 24/04/2019 4:43 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Arti,

Welcome to our forum.

The # sign is a digit placeholder. Insignificant digits are not displayed by the #, whereas with the zero they are. e.g.

This format 00.00 applied to this number 1.50 will give you 01.50

Whereas this format ##.## applied to 1.50 will give you 1.5

More is explained in our Custom Number Format Guide.

Mynda

 
Posted : 24/04/2019 8:13 am
(@albos)
Posts: 2
New Member
Topic starter
 

Thank you!

 
Posted : 25/04/2019 4:30 am
(@sanal)
Posts: 3
Active Member
 

Hi Mynda, 

Would like to add something to this question, For credit card , had 2 questions.

1. Used #### #### #### #### and it worked rather than the formula you used, would it be admissible to use this or there is something I'am missing ?

2. Why does the 16 th number also end as a zero? what if credit cards dont end with 0

 
Posted : 24/08/2019 10:03 am
(@catalinb)
Posts: 1937
Member Admin
 

A credit card should be entered as text, excel works only with numbers up to 15 digits, any digit after 15 digits will be replaced with 0.

Most likely you will not make calculations with a credit card number, so there is no need to enter it as a number.

See this article about floating point calculation.

 
Posted : 24/08/2019 11:43 am
(@sanal)
Posts: 3
Active Member
 

Thank you Catalin

 
Posted : 25/08/2019 5:01 am
Share: