conversion

blog Automorphism

dlebansais's picture

Introduction

Practitioners of Eiffel are used to polymorphism, the separation between the view some piece of code may have over an object, and the actual implementation of that object.

blog Conversion between REAL_64 and REAL_32

manus_eiffel's picture

Recently one of our customer found a loss of precision in their floating point arithmetic computations involving REAL_32 and REAL_64. This loss can be seen in the code below:

make
	local
		x: REAL_32
		y: REAL_64
		z: REAL_64
	do:= 0
		y := 1.123456789012345:= x + y
	end
where at the end the value of z was not equal to the value of y.

Syndicate content