playMaker

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

Splankton

  • Sr. Member
  • ****
  • Posts: 268
How to get 2 int variables, from one 2 digit variable?[SOLVED]
« on: January 26, 2015, 10: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, 10:43:32 AM by Splankton »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to get 2 int variables, from one 2 digit variable?
« Reply #1 on: January 26, 2015, 10:30:20 AM »
You cab convert it to a string and use get substring.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Splankton

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

Ok, thanks