What is the difference between single float/ and double float // | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between single float/ and double float //

12th Apr 2020, 6:40 AM
Gamer Harsh
8 Answers
+ 2
thanks for the correction 👍
12th Apr 2020, 7:41 AM
Enrique Flores
Enrique Flores - avatar
+ 2
In division, the result of using / is a float(15/5=3.0) but using // wiil change the result into a non-float anymore(15//5=3). A little advice from a learner.
14th Apr 2020, 3:49 AM
Aaron Luke Olvida🇵🇭
Aaron Luke Olvida🇵🇭 - avatar
+ 1
Twice the memory means I am new in coding
12th Apr 2020, 6:43 AM
Gamer Harsh
0
aight, so first you need to know that each type of memory like int, char, float etc occupies a fixed amount of memory
12th Apr 2020, 6:44 AM
Enrique Flores
Enrique Flores - avatar
0
for example int occupies 4 bytes
12th Apr 2020, 6:45 AM
Enrique Flores
Enrique Flores - avatar
0
Ok
12th Apr 2020, 6:45 AM
Gamer Harsh
0
Single float is a single precision(32 bits) where as double float is a double precision(64 bits)
12th Apr 2020, 6:45 AM
sarada lakshmi
sarada lakshmi - avatar
- 1
if im not wrong double float ocupies twice the memory than float and thats it
12th Apr 2020, 6:42 AM
Enrique Flores
Enrique Flores - avatar