Modify

Opened 10 years ago

Closed 10 years ago

#3040 closed Bug (Fixed)

Int() typos in Remarks

Reported by: c.haslam Owned by: Jpm
Milestone: 3.3.13.21 Component: Documentation
Version: 3.3.13.20 Severity: None
Keywords: Cc:

Description

Remarks says:

Default behavior is that if the result is within range of 32bit integer then 32bit integer is returned. If not, 64bit integer is returned. Both signed.
Fractional portions are truncated, so Int(1.999999) returns 1
Int(0/0) returns -9223372036854775807, if you were wondering.
This function makes minor corrects to floating point numbers to account for the imprecise nature of floating point numbers. For example, the floating point expression 0.7 + 0.2 + 0.1 produces a floating point number that is not quite 1.0. Int() corrects for this anomaly, however, certain extremely rare circumstances may lead to Int() returning an unexpected value (the odds of getting an unexpected value are less than if Int() did not attempt any correction at all).

It should say: (corrections are bolded)

Default behavior is that if the result is within range of 32-bit integers then a 32-bit integer is returned. If not, a 64-bit integer is returned. Both are signed.
Fractional portions are truncated, so Int(1.999999) returns 1.
Int(0/0) returns -9223372036854775807, if you were wondering.
This function makes minor corrections to floating point numbers to account for the imprecise nature of floating point numbers. For example, the floating point expression 0.7 + 0.2 + 0.1 produces a floating point number that is not quite 1.0. Int() corrects for this anomaly, however, certain extremely rare circumstances may lead to Int() returning an unexpected value. (The odds of getting an unexpected value are less than if Int() did not attempt any correction at all).

Attachments (0)

Change History (3)

comment:1 Changed 10 years ago by c.haslam

Sorry,but most of the nolded corrections don't show. Hopefully you will be able to simply copy the revised text into the help file.

comment:2 Changed 10 years ago by anonymous

Yes, I make typos too! nolded => bolded.

comment:3 Changed 10 years ago by Jpm

  • Milestone set to 3.3.13.21
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [11313] in version: 3.3.13.21

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.