string to negative int problem
hey there first and foremost this is school related and if anyone has a problem with me asking for help then it is at their discretion whether or not to help me and if there is a problem with admin i can understand.
As far as requests go i feel that this is very simplistic and would really only aid me in a small way but i'll let you be the judge of that
my problem is that i needed to make a program that takes in a string of digits and output them as an integer. the problem that i am having is that i cannot figure out how to do this with negative numbers.
i know that it relates to unicode but ... im stuck
i convert the integer and using an IF i check if the first character is a '-' if it is i multiply by -1.
when the input is -1 i get 29 as an output. if anyone has any input that they would like to give i'd be very appreciative
Thanks in advance