Darkempire78 / OpenCalc

A simple and beautiful calculator for Android
GNU General Public License v3.0
868 stars 101 forks source link

Crashes when dividing by a number less than 1 and has a zero immediately after the decimal #300

Closed AllenCyborg closed 1 year ago

AllenCyborg commented 1 year ago

Describe the bug OpenCalc version 3.0.0-beta2 The calculator crashes when trying to divide any number with a number <= '0.09', infact it crashes when the zero after the decimal is typed '0.0' without giving me a chance to add the '9'

To Reproduce Steps to reproduce the behavior:

  1. Open the app
  2. Type in any number
  3. Tap the divide operation
  4. Type in any number <= 0.09 as the divisor.

Expected behavior Suppose you are trying to type in 0.09 as the divisor, the app will crash when 0.0 has been entered.

Screenshots/videos https://streamable.com/7hysi3

Smartphone (please complete the following information):

Darkempire78 commented 1 year ago

Fixed in the v3.0.0-beta3

AllenCyborg commented 1 year ago

ok~ thanks