From 663d9667ce1da731070cdc77d1a54ad6be01b4e4 Mon Sep 17 00:00:00 2001 From: shitpoet Date: Thu, 25 Jul 2024 22:42:31 +0400 Subject: [PATCH] Update unified-types.md Add phrase: > Note that `Long` to `Float` conversion is deprecated in new versions of Scala, because of the potential precision lost. --- _tour/unified-types.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_tour/unified-types.md b/_tour/unified-types.md index 191dc28c1e..a6f0e9c0dd 100644 --- a/_tour/unified-types.md +++ b/_tour/unified-types.md @@ -57,6 +57,8 @@ true Value types can be cast in the following way: Scala Type Hierarchy +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 %}