View Poll Results: What Number Type Do You Use The Most?

Voters
19. You may not vote on this poll
  • Double Float

    1 5.26%
  • Floating Point

    0 0%
  • Long

    2 10.53%
  • Integer

    16 84.21%

Thread: Number Types

  1. #1

    Number Types

    What is the one that you use most frequently?
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  2. #2
    aurė entuluva! mithrandir's Avatar
    Join Date
    Aug 2001
    Posts
    1,209
    Mostly integer I guess. It depends though on what I need the program to do, what it is for, etc. etc. etc.

  3. #3
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    long double...
    80-bit rules!!
    Yoshi

  4. #4
    Whoops, I meant Double Long, not Double Float. Sorry. Well, I like double long, holds a lot, but doesn't need an F at the end.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  5. #5
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    ints are great.

    doubles are used a lot for 3d graphics...which i havent gotten into yet, so i still mostly use the good ol' ints.
    My Website

    "Circular logic is good because it is."

  6. #6
    Registered User Null Shinji's Avatar
    Join Date
    Oct 2001
    Posts
    80
    Integers
    Null Shinji The Sorcerer is here
    Evangelion Quotes:
    "If youre gonna do it, dont waste time. Otherwise, leave", Gendo
    "Release the final safety lock, Evangelion Unit One, Lift Off!!", Misato
    "Syncrograph has reversed, pulses are flowing back!!!", Maya
    streamload id= nullshinji icq= 12944337; E-M@IL= [email protected]; aim= mayeba
    msn= [email protected]

  7. #7
    wierd guy bart's Avatar
    Join Date
    Aug 2001
    Posts
    87
    i hve actualy never had a need for anything besides ints and chars. hey, i just learned how to use char as a number... that might work...

  8. #8
    Registered User goran's Avatar
    Join Date
    Sep 2001
    Posts
    68
    Actually the requirement dictates it for me ... given the choice, i choose int ...

    cheers,
    I don't wait for the future; it comes soon enough.

  9. #9
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    >3d graphics

    you could use fixed point math... this would rid you of needing to use the FPU excessively and save you a lot of time [run-time, that is...]... eventually the usage of various variable types cannot be generalized such...
    hasafraggin shizigishin oppashigger...

  10. #10
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    but in 32-bit compilers such as GCC or Visual C++, an integer is the same thing as a Long, isn't it?

    I always do

    int i;

    wait no, I don't, I use the variable i for for's, maybe something like

    int MyIntegerVariableWhichDoesNothingAtAll;

    ask Null Shinji, he knows how I name variables and functions

    Oskilian

  11. #11
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Integers aren't neccesary numeric. Iterating through an array is not really all that mathematical, but ya sure as hell don't want to do it with floats.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  12. #12
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    Code:
    double anti;
    printf ("%ld", anti);
    
    -----
    
    SIGSEGV..........
    hasafraggin shizigishin oppashigger...

  13. #13
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    DA: LOL

    Has anyone ever made some bitwise using Long Integer's (128 bit in DJGPP)?

    Oskilian

  14. #14
    Registered User
    Join Date
    Sep 2001
    Posts
    164
    128-bit? What do you mean?
    // Gliptic

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2008, 11:57 AM
  2. adding a number to a number
    By bigmac(rexdale) in forum C Programming
    Replies: 11
    Last Post: 10-24-2007, 12:56 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Prime number program problem
    By Guti14 in forum C Programming
    Replies: 11
    Last Post: 08-06-2004, 04:25 AM
  5. help with a source code..
    By venom424 in forum C++ Programming
    Replies: 8
    Last Post: 05-21-2004, 12:42 PM