LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Scientific Notation problem

Below code is wht i'm using to book a serial of 19 digits.

Start: 9904785190112345080
End: 9904785190112345089


The numbers though change due to scientific notation as numbers is
very long.
----------------------------------------------------------------------------------------------------
Sub UpdateQty()
If IsNumeric(txtStart.Text) And IsNumeric(txtEnd.Text) Then
'txtQty.Text = Format((CDbl(txtStart.Text) - CDbl(txtEnd.Text) -
1), String(Len(txtStart.Text), "0"))
txtQty.Text = (CDbl(txtEnd.Text) - CDbl(txtStart.Text) + 1)
End If
End Sub
----------------------------------------------------------------------------------------------------


Would appreciate some input.
 
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
what is a scientific notation#? hisham Excel Discussion (Misc queries) 4 February 16th 10 06:34 PM
Scientific notation of CSV FASTWRX Excel Discussion (Misc queries) 4 October 25th 07 12:59 AM
Formula Scientific Notation Problem [email protected] Excel Programming 4 September 14th 06 09:19 PM
scientific notation T.Reisz Excel Discussion (Misc queries) 4 June 12th 06 01:59 PM
Scientific notation Clive Excel Discussion (Misc queries) 2 February 8th 05 11:38 PM


All times are GMT +1. The time now is 07:26 AM.

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"