playMaker

Author Topic: How to get 2 int variables, from one 2 digit variable?[SOLVED]  (Read 856 times)

Splankton

  • Sr. Member
  • ****
  • Posts: 258
    • View Profile
How to get 2 int variables, from one 2 digit variable?[SOLVED]
« on: January 26, 2015, 08:26:57 AM »
If I have a 2 digit int, how can I extract each digit as its own int variable?
« Last Edit: January 26, 2015, 08:43:32 AM by Splankton »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: How to get 2 int variables, from one 2 digit variable?
« Reply #1 on: January 26, 2015, 08:30:20 AM »
You cab convert it to a string and use get substring.

Splankton

  • Sr. Member
  • ****
  • Posts: 258
    • View Profile
Re: How to get 2 int variables, from one 2 digit variable?
« Reply #2 on: January 26, 2015, 08:43:16 AM »
You cab convert it to a string and use get substring.

Ok, thanks