Mathjs: Support +=

Created on 7 Dec 2016  路  6Comments  路  Source: josdejong/mathjs

Example:
a = 1
a += 1 should set a = 2 and return 2

feature

All 6 comments

Thanks for the suggestion, I miss this operator too every now and then.

Will it work with -=, *= and /= too?

Yes we we should add all of them :)

Not strictly related, but what about the ES7 exponential operator (**)?

Well, we already have ^ for exponentiation, adding ** too would not really help I think.

Let's discuss in #1134.

Was this page helpful?
0 / 5 - 0 ratings