Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Automatic Rounding up

In Excel while writing a 16 digit number the last digit is always rounded to
"0". Eg. while writing the number 4030020530156015, the display number is
4030020530156010. Why? however a 15 digit number is displayed as such.
--
NN
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Automatic Rounding up

It's to do with the way excel handles numbers. Excel handles up to 15 digits
of precision so if you want to use more; credit card No's for example then
prece3d the number with a ' and it will be displayed correctly.

Mike

"NN" wrote:

In Excel while writing a 16 digit number the last digit is always rounded to
"0". Eg. while writing the number 4030020530156015, the display number is
4030020530156010. Why? however a 15 digit number is displayed as such.
--
NN

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Automatic Rounding up

Thanks. But i would like to use these values to run Luhn algorithm. These are
credit card numbers.
--
NN


"Mike" wrote:

It's to do with the way excel handles numbers. Excel handles up to 15 digits
of precision so if you want to use more; credit card No's for example then
prece3d the number with a ' and it will be displayed correctly.

Mike

"NN" wrote:

In Excel while writing a 16 digit number the last digit is always rounded to
"0". Eg. while writing the number 4030020530156015, the display number is
4030020530156010. Why? however a 15 digit number is displayed as such.
--
NN

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Automatic Rounding up

If you use the MID() function to extract characters from the 16 character
text string, you can do the relevant arithmetic on the digits you've
extracted.
--
David Biddulph

"NN" wrote in message
...
Thanks. But i would like to use these values to run Luhn algorithm. These
are
credit card numbers.
--
NN


"Mike" wrote:

It's to do with the way excel handles numbers. Excel handles up to 15
digits
of precision so if you want to use more; credit card No's for example
then
prece3d the number with a ' and it will be displayed correctly.

Mike

"NN" wrote:

In Excel while writing a 16 digit number the last digit is always
rounded to
"0". Eg. while writing the number 4030020530156015, the display number
is
4030020530156010. Why? however a 15 digit number is displayed as such.
--
NN



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Automatic Rounding up

Take a look he

http://groups.google.co.uk/group/mic...6240b8b84903f6

or

http://snipurl.com/1g2i8

But the entry still needs to be text.




NN wrote:

Thanks. But i would like to use these values to run Luhn algorithm. These are
credit card numbers.
--
NN

"Mike" wrote:

It's to do with the way excel handles numbers. Excel handles up to 15 digits
of precision so if you want to use more; credit card No's for example then
prece3d the number with a ' and it will be displayed correctly.

Mike

"NN" wrote:

In Excel while writing a 16 digit number the last digit is always rounded to
"0". Eg. while writing the number 4030020530156015, the display number is
4030020530156010. Why? however a 15 digit number is displayed as such.
--
NN


--

Dave Peterson


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic update of spreadsheet & automatic update between workboo Losva Excel Worksheet Functions 6 September 12th 08 03:22 PM
Rounding Grant Excel Worksheet Functions 3 March 1st 07 09:55 PM
Rounding Ms Serene Excel Discussion (Misc queries) 1 August 3rd 06 07:37 PM
Rounding Andreas Håkansson Excel Worksheet Functions 5 March 29th 06 01:31 PM
Rounding Jeanette Excel Worksheet Functions 2 December 6th 05 07:43 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"