Ticket #3363 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

Error in Rational divide

Reported by: miguelgarcia Owned by: garycmartin
Priority: High Milestone: Unspecified by Release Team
Component: Calculate Version: Git as of bugdate
Severity: Major Keywords:
Cc: Distribution/OS: Fedora
Bug Status: Unconfirmed

Description

Bad result with rational division.
Ex: (1/4)/(1/2) should output 0.5 but instead output 8

Attachments

0001-Fix-error-in-Rational-division.patch Download (0.8 KB) - added by miguelgarcia 14 months ago.
patch for rational division

Change History

  Changed 14 months ago by miguelgarcia

  • owner changed from rwh to miguelgarcia
  • status changed from new to accepted

Changed 14 months ago by miguelgarcia

patch for rational division

follow-up: ↓ 4   Changed 14 months ago by miguelgarcia

  • owner changed from miguelgarcia to rwh
  • status changed from accepted to assigned

Hi, i attached a patch for this issue
Regards

  Changed 14 months ago by godiard

  • owner changed from rwh to garycmartin

in reply to: ↑ 2   Changed 14 months ago by garycmartin

  • status changed from assigned to closed
  • resolution set to fixed

Replying to miguelgarcia:

Hi, i attached a patch for this issue
Regards

Many thanks for catching this nasty bug Miguel! Landed the patch in mainline and will build a Calculate-39 release soon:

 http://git.sugarlabs.org/calculate/mainline/commit/2690934c0fc7c20b72884307e3759ec71ec1fdc8

Note: See TracTickets for help on using tickets.