Skip to content

Commit 0ab41a6

Browse files
authored
Update unified-types.md (#3046)
Add phrase: > Note that `Long` to `Float` conversion is deprecated in new versions of Scala, because of the potential precision lost.
1 parent 69744f5 commit 0ab41a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_tour/unified-types.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ true
5757
Value types can be cast in the following way:
5858
<a href="{{ site.baseurl }}/resources/images/tour/type-casting-diagram.svg"><img style="width:100%" src="{{ site.baseurl }}/resources/images/tour/type-casting-diagram.svg" alt="Scala Type Hierarchy"></a>
5959

60+
Note that `Long` to `Float` conversion is deprecated in new versions of Scala, because of the potential precision lost.
61+
6062
For example:
6163

6264
{% tabs unified-types-2 %}

0 commit comments

Comments
 (0)