NEWTON

NEWTON


Popular tags

    How to calculate the minimum decimal number that can store 20 chars long string as a field element?

    Asked

    4 months ago

    6

    views


    0

    How to calculate the minimum decimal number that can store 20 chars long string as a field element?

      cairocairo-lang

    Newton

    asked

    4 months ago


    1 answers

    0

    img

    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

    Your answer

    NEWTON

    NEWTON