Literals/Floating point: Difference between revisions

Content added Content deleted
(+Stata)
(Added Julia language)
Line 523: Line 523:
1 / 2 //int equal to 0</lang>
1 / 2 //int equal to 0</lang>
Values that are outside the bounds of a type will give compiler errors when trying to force them to that type.
Values that are outside the bounds of a type will give compiler errors when trying to force them to that type.

=={{header|Julia}}==
{{works with|Julia|0.6}}

<lang julia>0.1
.1
1.
1e-1 # scientific notation
1e+10
1e-10
0x01p-1 # hex float</lang>


=={{header|Kotlin}}==
=={{header|Kotlin}}==