Search Unity

0 not equal to 0

Discussion in 'Visual Scripting' started by deathkill781, Jun 3, 2021.

  1. deathkill781

    deathkill781

    Joined:
    Jun 3, 2021
    Posts:
    2
    Hello people. I recently purchased a course by code monkey, and it's been extremely helpful, but during one of the lectures, I used all the correct code and logic, but for some reason something weird happened. When comparing a variable with a float of value 0 using a not equal unit, even though both the variable and float are inputting a 0 value, the not equal unit outputs a true value, despite the values being equal. Is this a glitch, or could it be something wrong with my code, because I checked it and compared it with that of the instructor, and yet it still does this problem.

    Note: none of the values that are being set for the variable are decimals, so it's unlikely that the value is not equal to 0, but so miniscule that bolt is identifying it as such. wtf.PNG
     
  2. theor-unity

    theor-unity

    Unity Technologies

    Joined:
    Feb 26, 2016
    Posts:
    188
    known issue, the fix will be in the next version. meanwhile, checking the "numeric" checkbox in the "not equal" node properties should fix it. thank you for the report !