You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a problem while using the bigints library. When I tried to use the toInt function to convert a value of type BigInt to type int, the following error message appeared:
template/generic instantiation of `toInt` from here
Error: cannot instantiate: 'T'
Here is my code snippet:
# 示例var charset ="abc"let length =2let startFrom ="ab"let endAt ="bc"let startNumber: BigInt=getStartNumber(startFrom, charset, length)
let endNumber: BigInt=getEndNumber(endAt, charset, length)
for i in startNumber..endNumber:
echofromDecimal(charset, i.toInt, length)
My Nim version is nim-1.6.4 and the bigints library version is bigints-1.1.0.
How can this problem be solved? Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
I encountered a problem while using the bigints library. When I tried to use the toInt function to convert a value of type BigInt to type int, the following error message appeared:
Here is my code snippet:
My Nim version is nim-1.6.4 and the bigints library version is bigints-1.1.0.
How can this problem be solved? Thank you!
The text was updated successfully, but these errors were encountered: