944,067 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 343
  • C++ RSS
Oct 2nd, 2009
-1

C++

Expand Post »
What is a float value
Reputation Points: 6
Solved Threads: 0
Newbie Poster
James19142 is offline Offline
15 posts
since Oct 2009
Oct 3rd, 2009
0

Re: C++

A float value is a data type that stores decimals.i.e. numbers that have decimal points e.g 78.90,1.50,4.89,etc.
An example of declaring a float value is this:
float number=0.0;

When initialising float variables, it's good to use 0.0(not that it's compulsory,anyway).

Hope this helped!!
Reputation Points: 13
Solved Threads: 46
Posting Whiz in Training
tkud is offline Offline
235 posts
since Sep 2009
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in C++ Forum Timeline: How to find the product of two matrix?
Next Thread in C++ Forum Timeline: c++





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC