|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
ASP Cint, dbl, etc.
How would I make a number 16 characters long (CC Number) display on the screen without any deformation?
Code:
intNumber = 1234567812345678 Response.Write(intNumber) 1.23456781234568E+15 Thanks for any help. |
|
|
|
|
|
#2 |
|
Member (7 bit)
|
I believe that single will work. Try that, then double if it doesnt work.
|
|
|
|
|
|
#3 |
|
SQL nutcase
|
or use
Code:
intNumber = 1234567812345678 Response.Write(format(intNumber, "##################")) |
|
|
|
|
|
#4 |
|
Member (10 bit)
|
Thank you very much, but I'm getting an error when I apply that.
Error Type: Microsoft vb-script runtime (0x800A000D) Type mismatch: 'format' /nam/datamerge/data.asp, line 105 |
|
|
|
|
|
#5 |
|
Member (7 bit)
|
An integer variable won't store that many characters. It will only store numbers up to 32,172 (or something like that). Have you tried the single or double variable types yet? You may wanna try one of those variable types using the format mosquito suggested.
|
|
|
|
|
|
#6 |
|
SQL nutcase
|
you have to lookup if it's with format, It's possible that there is a function formatstring or something (I took this from visual basic, not from vbscript.) I'll look it up when I have some time.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|