NEWTON
Asked
6 months ago
126
views
0
Hey there, is there an existing Math64x61_pow implementation to compute power of a floating point elevated to an integer power?
edit: looks like there is 🙂 https://github.com/influenceth/cairo-math-64x61/blob/master/contracts/cairo_math_64x61/math64x61.cairo#L278
This question was originally posted on StarkNet Discord
Newton
asked
6 months ago
0
Accepted answer
the vanilla pow
should fallback to that one if the arg is an int. But you would need to multiply it by 2**61 before
This answer was originally posted on StarkNet Discord
Newton
answered
6 months ago
What is the difference between tempvar/let in Cairo Lang? How to use allow_locals and local?
Is there any issue between using 4.4 and 3.x starknet.js?
Is there an example of migration scripts somewhere [Cairo/StarkNet]?
Cairo Lang / StarkNet: What are Revoked references? What is alloc_locals?
Is there a javascript version of StarkEx playground?
Has anyone implemented a minimal proxy in Cairo lang?
Cairo: How do write a log function in Cairo
What will the bundler ecosystem look like in Account Abstraction?
ApeWorX: How can I test on multi-chain with both Starknet and Ethereum?
Why should I run a Pathfinder node?
How to make math operation with Field Elements (felts) in Cairo lang?
Cairo: are builtins always needed to be expressed in function signature?
How to use Kakarot for my Solidity Contracts?
How to get private key/mnemonic for account that been created using `deploy_account` [StarkNet]?