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
What are the security alerts while using mysql?
What is mysql database used for?
What is the difference between the primary and unique key in mysql?
What is RMS Migrations
What you can use regular expression for in mysql? Support your answer with an example?
How many columns can you create for an index?
How can we optimize stored procedure?
What is mysql database server?
What are aggregate functions in mysql?
What is the command used to create a database using php and mysql?
How can you see all indexes defined for a table?
Can python connect to mysql?
What are the differences between innodb and myisam engines?
What is a deterministic function?
What does "i_am_a_dummy flag" do in mysql?