Results 1 to 6 of 6

Thread: Longer Variable?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2003
    Posts
    599

    Longer Variable?

    guys,

    is there a variable that is able to hold the value in between

    120TB - 0TB to the precision of bytes .....

    That is to display 120 TeraByte in Byte ...... Is there a variable (number) that can hold up to that figure?



    Thank You

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    hmm i think you mean you want a variable type that can hold the number 131941395333120?

    try currency.

    1024*1024*1024*1024*120 = 131941395333120
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Whats double will that work i cant remember
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    MSDN

    Data type Storage size Range
    Byte 1 byte 0 to 255
    Boolean 2 bytes True or False
    Integer 2 bytes -32,768 to 32,767
    Long 4 bytes -2,147,483,648 to 2,147,483,647
    Single 4 bytes -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values
    Double 8 bytes -1.79769313486231E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values
    Currency 8 bytes -922,337,203,685,477.5808 to 922,337,203,685,477.5807
    Decimal 14 bytes +/-79,228,162,514,264,337,593,543,950,335 with no decimal point; +/-7.9228162514264337593543950335 with 28 places to the right of the decimal; smallest non-zero number is +/-0.0000000000000000000000000001
    Date 8 bytes January 1, 100 to December 31, 9999
    -= a peet post =-

  5. #5
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    Wow, a boolean takes up more space than a byte!
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2003
    Posts
    599
    Cool , and pretty thank to all of you ...


    Currency is the basket ball ..... I choose currency ... Thanks

    Just recall .. Thanks peet for listing themm....

    Thank You

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width