Explain the difference between FLOAT, DOUBLE and REAL.

Answer Posted / sanah

In Computer Science terminology(world) Real numbers are those which have decimal points.
These real numbers are categorized in 2 ways.
1.Float and
2.Double

Memory used by these two differs based on the programming language on which we works.
For Example in C:-
Float:-It uses only 4 bytes of memory
Double:-It uses 8 bytes of memory
The only difference between these two is that---
Float can hold only 4 bytes(ex:2.4509)
Double is used to hold 8 bytes(ex:2.450877777777777777779)
i.e
if(real_no is larger)
{
we go for double;//remember double is a real
}
else
{
we go for float;//remember float is also a real
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is myisamchk?

508


Is mysql good for large database?

492


What is myisam?

492


How do I create a mysql username and password?

495


What is a heap table?

474






How many columns can be used for creating Index?

573


How to create a test table in your mysql server?

496


Hi Team, This is kartik, I recently completed my B-tech. Importance of posting this question is for to know the best books on SQL(MYSQL/Oracle)? I like SQL concept's so much, at the same time i decided to choose SQL for my career purpose. So please suggest me the best books that are very helpful for a fresher to improve concepts like (SQL/PLSQL)Basics, programming concepts, architectures etc. Please consider my request as an important one. I am very thankful to you for providing this opportunity. If possible can you please send the names of books for my personal id also: karthikgdv1206@yahoo.com. Thanks, Kartik T

1737


can you tell the order of sql select statement? : Mysql dba

473


State the differences between mongodb and mysql.

515


What is longblob in mysql?

519


Does adding an index lock a table?

481


How do you stop an access query?

486


What is dbms in mysql?

500


How do I quit mysql?

481