Math.Min

  • Автор темы Автор темы Cyrix
  • Дата начала Дата начала

Cyrix

Client
Регистрация
16.12.2011
Сообщения
401
Реакции
12
Баллы
18
I want to get the Min of Variable a and number 2

For example, I gave 3 to variable a, and then I tried
return Math.Min(project.Variables["a"].Value,2);
But it gave me an error message saying Argument 1: cannot convert string to sbyte...


How to solve this problem?
Thanks.
 
Последнее редактирование:
I also got an error "Operator / can't be use on String or Int" when I did
return project.Variables["a"].Value/10;
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)