Loading ...
Sorry, an error occurred while loading the content.

python26 package - broken floating point on ds101j

Expand Messages
  • blorgbeard
    I m getting this weird python behaviour on my Synology DiskStation 101j: Python 2.6.2 (r262:71600, May 31 2009, 03:55:41) [GCC 3.3.4] on linux2 Type help ,
    Message 1 of 1 , Sep 7, 2009
    • 0 Attachment
      I'm getting this weird python behaviour on my Synology DiskStation 101j:

      Python 2.6.2 (r262:71600, May 31 2009, 03:55:41)
      [GCC 3.3.4] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> .1
      1251938906.2350719
      >>> .1
      0.23507189750671387
      >>> .1
      0.0
      >>> .1
      -1073741823.0
      >>> .1
      -1073741823.0
      >>> .1
      -1073741823.0
      >>>

      It gives the same output for `0.1`, `0.5`, `5.1`, `0.0`, etc.. Integers are echoed back at me correctly, but anything with a decimal point gives me the crazy numbers.

      The package in question is python26_2.6.2-2_armeb.ipk

      Have I configured something incorrectly, or is this a bug?
    Your message has been successfully submitted and would be delivered to recipients shortly.