Skip to content

Power of 2 problem #256

Description

@jwa1974

Test Environment (required)

  • Platform: MEGA65
  • ROM Release: 920418, 920421
  • Core Commit: aaf4542

Describe the bug
Some powers of 2 result in inexact numbers (2^23 = 8 388 608.1, 2^26 = 67 108 865, ...).

To Reproduce
Steps to reproduce the behavior:

  1. Do a PRINT 2^23 (as an example)
  2. The result will be printed as 8388608.1

Expected behavior
The above should result in 8 388 608. In BASIC v2 (as a reference), the numbers are correct (scientifically notated numbers are rounded as expected as well).

Screenshots
Image

Additional context
None.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    newNew report, not classified yet

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions