Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. Measuring decimal places

Measuring decimal places

Scheduled Pinned Locked Moved Help
5 Posts 3 Posters 1.3k Views
  • 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.
  • TheNicknameGovT Offline
    TheNicknameGovT Offline
    TheNicknameGov
    trusted helpers
    wrote on last edited by
    #1

    How do you measure how far the decimal place is? (e.g. tenth, hundredth, thousandth place)

    I'm back!!!

    1 Reply Last reply
    1
    • CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @the_true_odst

      Can you explain the question with an example? It’s not clear what you are trying to measure.

      TheNicknameGovT 1 Reply Last reply
      0
      • CreatiCodeI CreatiCode

        @the_true_odst

        Can you explain the question with an example? It’s not clear what you are trying to measure.

        TheNicknameGovT Offline
        TheNicknameGovT Offline
        TheNicknameGov
        trusted helpers
        wrote on last edited by
        #3

        Like if you want to find this decimal (in bold): 0.0001

        I'm back!!!

        CreatiCodeI JaecadeJnightJ 2 Replies Last reply
        0
        • TheNicknameGovT TheNicknameGov

          Like if you want to find this decimal (in bold): 0.0001

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by
          #4

          @the_true_odst

          You can ask XO about it. Here is an example prompt:

          write a program to find out the third digit after the decimal point for a number

          1 Reply Last reply
          0
          • TheNicknameGovT TheNicknameGov

            Like if you want to find this decimal (in bold): 0.0001

            JaecadeJnightJ Offline
            JaecadeJnightJ Offline
            JaecadeJnight
            Mod Helper
            wrote on last edited by
            #5

            @The_True_Odst I struggled to understand what you meant at first, but after some re-reading, I can help. So I understand you want to be able to find the decimal number AT any decimal place of any decimal number reliably.
            So, decimal places go like
            0.0001
            (whole number).tenths,hundredths,thousandths,ten-thousandths, hundred-thousandths, millions, etc.

            So we know the bold in 0.0001 is thousandths, but we need a program to do that.
            We’ll just be saying the number of its place instead, like that’s the third decimal place here (3).

            So we need to clean up the number by making it positive (incase its negative), and only focusing on the part after the decimal point, then returning the decimal place based on another input.

            Make a reporter custom block with two inputs then put this code into it:
            64b4716e-d974-4486-abbb-ae682fd1def9-image.png

            It should report the number that exists at a decimal place. So in 0.128456, if you wanted to know the number that resides at thousandths place (3), then you’d do (return decimal place (3) of decimal number (0.128456)) and it would report “8”.

            #LLJW
            <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • CreatiCode