• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Content Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Pui Lun Christin C Hebron
    Pui Lun Christin C Hebron
    5,693 Points

    We've assigned the string "123" to a variable named string. Take string, use a method to convert it to an integer, and s

    Posted January 18, 2020 2:36pm by Pui Lun Christin C Hebron
    Pui Lun Christin C Hebron
    5,693 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    1 Answer

  • Saadia Fattah
    Saadia Fattah
    1,939 Points

    I don't understand why this says this

    Posted December 29, 2018 7:02pm by Saadia Fattah
    Saadia Fattah
    1,939 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    1 Answer

  • Saadia Fattah
    Saadia Fattah
    1,939 Points

    I tried both of these methods for the integer part,but for to_i say it is nil but when i try that it says unidentified

    Posted December 29, 2018 6:40pm by Saadia Fattah
    Saadia Fattah
    1,939 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    1 Answer

  • Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points

    string to integer

    Posted August 17, 2018 2:35pm by Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    1 Answer

  • Joseph Silva
    Joseph Silva
    2,140 Points

    We've assigned the string "123" to a variable named string. Take string, use a method to convert it to an integer, and s

    Posted March 9, 2018 7:25am by Joseph Silva
    Joseph Silva
    2,140 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    2 Answers

  • Ali .
    Ali .
    15,521 Points

    I need help, please.

    Posted October 27, 2017 3:00am by Ali .
    Ali .
    15,521 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    5 Answers

  • Jason Smith
    Jason Smith
    17,879 Points

    I can't seem to figure this code challenge out. I used the to_i to convert a string to an integer but...

    Posted October 18, 2017 9:00am by Jason Smith
    Jason Smith
    17,879 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    1 Answer

  • Alicja Dul
    Alicja Dul
    8,589 Points

    Challenge task 1 of 1 => We expected the "integer" variable to equal 123, but it was: nil

    Posted October 15, 2017 8:27pm by Alicja Dul
    Alicja Dul
    8,589 Points
    • Ruby
    • Ruby Basics
    • Numbers
    • Converting Strings to Numbers

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.