Project

General

Profile

Bug #496

When using Add to increment an Integer variable, if the amount you're adding comes from a float NaN is the result.

Added by Brian Flanagan over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
09/16/2020
Due date:
% Done:

0%

Estimated time:
2:00 h
Affected version:

Description

LEVEL = 50
V# = 10
Add LEVEL, V#
Print LEVEL

The result printed is:
NaN

The work-around (and best practice) is to use Int on a floating point operand that will modify an integer variable.

Also available in: Atom PDF