Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Tutorial - The Float Variable

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,728
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 29, 2008

Quick example on how C++ behaved calculating the same number with INT and FLOAT variables C++ by Fabio Scopel.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (BablioBr)

  • nice thanks

  • Cool thx!

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • very nice, thank you! that helped me on my homework...

  • very useful, thanks!

  • So it does the same as the double variable? I dont see the point.

  • how can i compare floats?

    > OR < and == doesn't work

  • So...float can show decimals...thats it??? Omfg....

  • My major is Game Programming. Can anyone help me lol. I am not really good in C++. Message me because i am lost :(

  • use Dev C++ that way u dont have to type lots of shit when u want to compile and run, u simply press the run button

  • No, he is right... Int doesnt show results w/ decimal

  • LOL but good job, you could of done:

    double variblename = 0.0;

    or

    to prove you wrong u said that int doesnt support decimal but it does you can do this:

    int feet

    feet = 0.0;

    int meters

    meters = 0.0;

    or a whole bunch of different ways

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more