Project

General

Profile

Actions

Bug #496

closed

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 about 4 years ago. Updated over 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.

Actions

Also available in: Atom PDF