Make reward always return a float number (#1857)
Make reward always return a float number (#1857)

In the current implementation, *reward* sometimes returns integer values, and other times returns float values.

The example below corresponds to three random episodes and showcases how reward contains -1.0 and -1 values.
    [((13, 1, False), 0, -1.0)]
    [((18, 10, False), 1, -1)]
    [((5, 10, False), 1, 0), ((8, 10, False), 1, 0), ((18, 10, False), 1, 0), ((20, 10, False), 0, -1.0)]

This change tries to fix that, and guarantee that a float value is always returned.

Hope it helps!
Miguel
Farama-Foundation/Gymnasium,Farama-Foundation/Gymnasium