Page MenuHomeFeedback Tracker

Dividing a vector by an integer results in infinite vector
New, NormalPublic

Description

If you divide a vector datatype by an integer datatype the result is an infinite vector.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Doesn't work:

vector test = "1 2 3";
int num = 3;
test /= num;
Print(test);

Result: vector test = <inf,inf,inf>

Works:

test /= (float)num;

Result: vector test = <0.333333,0.666667,1>

Event Timeline

Plato created this task.Oct 22 2022, 8:20 AM