﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1161	Weird integer arithmethics	asodja	asodja	"It wrongly calculates the expressions like `3*(2^p) => 3, when p == 1' or `3*(2^p) => 27, when p == 3'.


In all cases is p of type Integer. If it is declared as Real, the results of expression evaluations are correct.
Expression is also correctly evaluated when integer value is inserted instead of variable, e.g. `3*(2^3) => 24'.


The example class is attached and this error appears in omc shell, for example:

{{>>> p := 3

3

>>> 3*(2^p)

27
}}"	defect	closed	high		Instantiation	1.5.0RC2	fixed		asodja
