Unexpected behavior

Unexpected behavior - Сообщения

#1 Опубликовано: 23.08.2018 03:06:44
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Hi. I can not understand why the argument of the last function "disappears"
Thanks in advance
Alvaro.

Файл не найден.Файл не найден.
#2 Опубликовано: 23.08.2018 05:01:02
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

The answer is in dec2bas(x,b).

In the third row there is xx-m)/b; arguent:something inside the function is a pass-by-reference operation from the function to the argument, hence the behavior (900 becomes 0).

If you don't want it, assign x to an internal variable and do all the definition operations on that variable (f.e. z:x -> zz-m)/b)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
sergio 23.08.2018 13:04:00
#3 Опубликовано: 23.08.2018 12:22:11
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

The answer is in dec2bas(x,b).

In the third row there is xx-m)/b; arguent:something inside the function is a pass-by-reference operation from the function to the argument, hence the behavior (900 becomes 0).

If you don't want it, assign x to an internal variable and do all the definition operations on that variable (f.e. z:x -> zz-m)/b)



Tante grazie Davide! I did not know where else I could look for the error, because I thought I had reviewed everything.

Best regards.
Alvaro.
1 пользователям понравился этот пост
Davide Carpi 23.08.2018 20:52:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений