Announcement

Collapse
No announcement yet.

how use only last digit of multi-digit cipher

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how use only last digit of multi-digit cipher

    hello,

    i like to use only the last digit of a multi-digit cipher.

    If e.g. incoming close is 11195 ("5" is using), how can I split the 11195, that I use only the last digit for my analysis?

    e.g.
    if(...last digit is "5")
    do....
    else....

    Torso

  • #2
    Torso
    Enclosed below is an example of one way you can do it.
    Alex

    PHP Code:
    var string formatPriceNumber(close(0))
    var 
    lastStringValue string.charAt(string.length 1);
    debugPrintln(lastStringValue

    Comment

    Working...
    X