Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Convert Words to a Number

    2D Blocks
    1
    1
    181
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

       

      Introduction

      Sometimes we get a number written as English words, such as “three”, “twenty”, or “one hundred five”. If we want to run any calculation on this number, we have to convert it to an arabic number first.

      You can use this reporter block in the Operators category for the conversion:

       
      It takes one input, which is the number in word format. The returned value is the number in arabic format.

      Here are some examples. Note that negative numbers are supported as well.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post