Skip to content

Dynamic::Var silently loses precision on int->float conversion #4423

@aleks-f

Description

@aleks-f

Description
As stated - on integral to floating point conversion, loss of precision is suppressed and ignored.

To Reproduce
Assign an int value occupying more than 23 bits (on most platforms) to a float.

Expected behavior
Precision loss should be allowed (as is in the language type system). However, it should be possible to enforce strict no-precision-loss policy for integral to floating point conversions.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions