Answer the question
In order to leave comments, you need to log in
Math.Abs from string how does it work?
Good day to all! I came across this example
string str = "d4";
var res = Math.Abs(str[0]);
var res1 = Math.Abs(str[1]);
Answer the question
In order to leave comments, you need to log in
A string is an array of chars. Accordingly, [i] - will return the character of the string with the number i.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question