Skip to content

Commit

Permalink
Update unified-types.md (#3046)
Browse files Browse the repository at this point in the history
Add phrase:
> Note that `Long` to `Float` conversion is deprecated in new versions of Scala, because of the potential precision lost.
  • Loading branch information
shitpoet authored Oct 26, 2024
1 parent 69744f5 commit 0ab41a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _tour/unified-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ true
Value types can be cast in the following way:
<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>

Note that `Long` to `Float` conversion is deprecated in new versions of Scala, because of the potential precision lost.

For example:

{% tabs unified-types-2 %}
Expand Down

0 comments on commit 0ab41a6

Please sign in to comment.