Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 297 Bytes

File metadata and controls

16 lines (14 loc) · 297 Bytes

Literal Syntax

floats can be simply initialized by using numeric values or obtained as a result of an expression. Values must consist of integral and fractional parts separated by a dot.

Example 1

>>> 1.0
1.0
>>> 3.14
3.14
>>> 3.0/2
1.5
>>> 2.0 + 1.5
3.5