Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#5560 closed defect (wontfix)

Sometimes a heading value represents zero, but it is not zero.

Reported by: Kazuhiro Abe Owned by: etoys
Priority: high Milestone:
Component: etoys-activity Version: 1.0-software-build-623
Keywords: Cc:
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: no

Description

When I rotate an Ellipse with [Ellipse turn by 5], I can control it by [Ellipse's heading = 0] with a test tile. But when I change the turn value from 5 to 1, it's never controlled by that condition. It always returns "false". See attachment project.

Attachments (1)

zeroIsNotZero.001.pr (42.1 KB) - added by Kazuhiro Abe 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Kazuhiro Abe

comment:1 Changed 7 years ago by ohshima

  • Resolution set to wontfix
  • Status changed from new to closed

This is the standard issue with floating point numbers. (repeat "x increase by: 0.1" 10 times you don't get something that is equal to 1.0.)

We have rounded function in tiles. Until we create a new system that honors decimal numbers and user specified values in a better way, this is "wontfix".

comment:2 Changed 6 years ago by gregorio

  • Milestone Never Assigned deleted

Milestone Never Assigned deleted

Note: See TracTickets for help on using tickets.