#1356 datum number ($0) in plot is not an integer

5.0
closed-invalid
nobody
None
5
2014-03-14
2014-03-14
Karl Ratzsch
No

e.g.

gnuplot> plot "+" using 0:($0%5)
non-integer operand for %

probably shouldn´t be fixed in 4.6 (some existing plot might rely on it to be real, e.g. for a division), but i think this counts as one of those "snags" that could be fixed in a major release.

Discussion

  • How on earth did you gather the expectation that $0 was integer?

    This is not a bug at all, so there is nothing to be fixed.

     
    • status: open --> closed-invalid
     
  • Karl Ratzsch
    Karl Ratzsch
    2014-03-14

    A number that is ALWAYS integer might well be expected to be stored in an integer variable, i think. Don´t you?