前提・実現したいこと
print(4/33.14637863766378)
これを計算するとエラーが出ます。
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
デバックエリアにはこのエラーが出ます
error: MyPlayground.playground:4:1: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
print(4/33.14637863786378)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
なぜでしょうか?
ここに質問の内容を詳しく書いてください。
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
エラーメッセージ
該当のソースコード
ソースコード
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
エラーが出るならそのエラー・メッセージを提示しましょう
エラー・メッセージは、省略翻訳しないでそのままコピペで提示してください
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
デバックエリアにはこのエラーが出ます
error: MyPlayground.playground:4:1: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
print(4/3*3.14*6378*6378*6378)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
質問文は編集できるので、それを質問に追記しましょう
で、実際に実行してみてもそのエラーが出るんでしょうか
わかりました。教えていただきありがとうございます。
はい。実行しても計算の答えが出るのではなくエラーが出ます。
式で何か間違えとかありますか?
解決したんならベストアンサー選んでください
回答1件
あなたの回答
tips
プレビュー