2021-09-14から1日間の記事一覧
KotlinでFloatを宣言しようとした際にエラーが起きました。 var f: Float = 2.3 これを実行すると以下のエラーが出ます。 error: the floating-point literal does not conform to the expected type Float 原因はリテラルの型が違うからでした。 Kotlinでは…
KotlinでFloatを宣言しようとした際にエラーが起きました。 var f: Float = 2.3 これを実行すると以下のエラーが出ます。 error: the floating-point literal does not conform to the expected type Float 原因はリテラルの型が違うからでした。 Kotlinでは…