Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-26-2012, 01:19 AM   PM User | #1
dannyboi
New Coder

 
Join Date: Jul 2012
Location: NYC
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
dannyboi is an unknown quantity at this point
Explanation of floating-point numbers

Could anybody explain floating point types numbers concisely, because the books definition I am reading is somewhat confusing, and explain how it is applicable in real life.
dannyboi is offline   Reply With Quote
Old 07-26-2012, 11:47 AM   PM User | #2
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
an int is a single number (without decimal point- it is an integer ie -2, -1, 0, 1, 2, ...)
float, double, decimal are all forms of a decimal number - not to be confused with decimal data type- (eg: 1.34, 5.68, 8.22, etc) but with varying degrees of precision.
a float has up to 7 points of precision, a double has 15-16 points of precision, and a decimal has 28-29 points of precision. These are data types of .Net, most languages are relatively close by comparison in 'what' the data types are called and their precision and size.
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Users who have thanked alykins for this post:
dannyboi (07-26-2012)
Old 08-19-2012, 04:11 PM   PM User | #3
gelee
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
gelee is an unknown quantity at this point
Floating pont is a character which
contains numbers or integers that
is decimal. That is according to our
Computer Science professor. Good day!


_________________________________
Discover more about fencing
gelee is offline   Reply With Quote
Reply

Bookmarks

Tags
java, java programming

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:58 AM.


Advertisement
Log in to turn off these ads.