NEWTON
Asked
4 months ago
6
views
0
Newton
asked
4 months ago
0
If you want the answer for only letters string, here's what you can do.
Look at https://www.techonthenet.com/ascii/chart.php
Find the character of interest that has the lowest value in the ascii table. Feed a bytes string with 20 times that char. Convert to int with python.
int.from_bytes(b' ', 'big')
should work for your case.
answered
4 months ago
string
Cairo: How would I store negative numbers then retrieve them as negatives?
How to make math operation with Field Elements (felts) in Cairo lang?
How to use Kakarot for my Solidity Contracts?
Can you explain Cairo v0.10 usage functions as expressions?
What is the maximum value an uint and felt can store in Cairo Language?
Do you know a function that converts an array of felts (numbers) to a single string in JS? [Cairo Lang]
How do I connect my DAPP to Starknet mainnet using starknetjs?
The only way to invoke a contract is using migrations (this applies for both devnet and testnet?)
Is there any issue between using 4.4 and 3.x starknet.js?
Does Cairo support int256, or negative numbers in general?
Will it be possible to invoke functions from within the loops in Cairo 1.0?
How to make Bitwise operations in Cairo Lang using %builtins bitwise, bitwise_xor?
What is the inefficiency in this cairo code using alloc_locals