算术运算左侧必须是 "any"、"number"、"bigint" 或枚举类型。
时间: 2023-09-29 14:08:20 浏览: 211
在Swift中,算术运算的左侧必须是"any"、"number"、"bigint"或枚举类型。 Swift-<em>BigInt</em>是一个任意精度的算术库,它支持大多数常见数学运算符的整数(BInt)和分数(BDouble)。所以在Swift中,你可以使用Swift-<em>BigInt</em>库中的整数类型(BInt)进行算术运算。所以如果你在TypeScript中遇到了这个错误,你需要确保你正在对正确的数据类型进行算术运算。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Swift-BigInt:适用于Swift的轻量级,多精度算术库!](https://download.csdn.net/download/weixin_42175035/18996828)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [is-bigint:这是ES BigInt值吗?](https://download.csdn.net/download/weixin_42122838/18601966)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [TypeScritp数据类型](https://blog.csdn.net/m0_61902288/article/details/126732059)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文