Skip to content

Pascaline v1.5.0

Choose a tag to compare

@Calculator-Pascaline Calculator-Pascaline released this 05 Nov 05:51
· 90 commits to main since this release

Android 7.0 or newer is now required.

New

  • Programmer mode: integer calculator with HEX, DEC, OCT and BIN results, 64, 32, 16 and 8-bit words, bitwise operators, shifts, rotations and mod. Base and word size are remembered. It has its own history, saved with base and word size, grouped by day, with labels and swipe to delete. Tap an expression to type it again in the current base, or a result to use it. Wide screens show history and results next to a full-height keypad.
  • Deg/rad box: typing sin, cos or tan gives sin(|deg) with the closing bracket. The box picks deg after a number and rad after π, and switches when tapped.
  • Exact special angles: sin, cos and tan of multiples of 30° and 45° are exact, so cos(45 deg) is √2/2.
  • New units menu: full screen with a close button, colored category tiles, and a page that takes the category's color. Tiles run across the top on screens wider than tall and down the side otherwise. On wide screens the chosen tile grows into a pill with its name; on phones a colored heading slides in above the units. It opens on the last category you used.
  • Landscape keyboard: phones in landscape now get the real keyboard, with unit, i and the function pages.
  • New units: watt-second, IT calorie and kilocalorie, thermal and IT Btu, ton of refrigeration, short ton, Rankine, ångström, astronomical unit and rack unit (from Unitto issues 265 and 289).
  • Start from the last result: pressing +, −, × or ÷ on empty input puts the previous result before it, like Ans on NumWorks.
  • Constant calculation: equal on empty input repeats the last simple operation (a setting, off by default).
  • History: day headers, and labels from the swipe menu. Labeled entries ask before being deleted.
  • Price comparison: pick from 21 common currencies, or still type your own symbol.
  • Converter: unit group icons, a chip to clear the selected group, and a setting for the icons.
  • Date calculator: a Weeks field.
  • Time zones: picking your time continues to a date picker.
  • Settings: new General, Apps, Phone and About groups, plus Report an issue, which opens a new GitHub issue.
  • Languages: Hindi added, Indonesian completed, and every Pascaline string translated, including 309 strings that were missing and the units menu.

Calculator

  • Results show ≈ whenever they are rounded, so 20÷4500 no longer looks exact.
  • Percentages after + and − use everything before them in the same bracket, so 1+2−3% is 2.91.
  • Derivatives simplify better: factors cancel in fractions and common numbers move out of brackets.
  • Roots over fractions are written √2/2 instead of 0.5√2.
  • The fraction line no longer shows 1⁄1 for results like 1÷3×3 or 0.999….
  • Decimal to fraction is more accurate: it finds 1/97, and negative numbers show as -1 1/2.
  • Backspace in an empty denominator removes the fraction, so 5÷ can be undone.
  • The bracket key opens a new bracket right after ( or a function instead of closing it.
  • History scrolls smoothly.

Look and feel

  • Pressed keys grow and push the others aside, and react as soon as a finger touches them.
  • Function keys animate like the keypad, with the same gaps.
  • Digit keys are bigger.
  • History cards are more compact, with centered text.
  • Input text is centered without cutting off tall digits.
  • Long key labels like NAND shrink to fit.
  • On wide screens the side menu is narrower (256 dp instead of 360 dp).
  • The side menu opens with a swipe from the left edge, so it doesn't fight the system back gesture.
  • The menu leaves room for the navigation bar, so Settings can scroll into view.

Changed and removed

  • Notation: numbers stay plain between 0.000001 and 1,000,000,000 and use E notation outside that range, on every screen. The Exponential notation setting is gone.
  • Keypad: every keypad, including the converter and the widget, has AC and puts 0 before the decimal key. The AC button and Zero in the middle settings are gone.
  • RAD key: removed, because each function's angle box sets the angle.
  • Calculator settings: the old history view options that no longer did anything are gone.
  • Credits: now read "Based on Unitto by Elshan Agaev".
  • Pounds: the unit symbol is now lb.

Fixed

  • Angle units in DEG mode were converted twice.
  • Programmer mode converted numbers with the sign bit set wrongly: FF in a byte showed 1, now 255.
  • "Select time" on a favorite time zone ignored summer time: Paris and New York were 5 hours apart in July (Android).
  • Body mass fields follow your number format again.
  • Empty converter input counts as 0 instead of failing.
  • Temperatures now convert through kelvin.
  • The date difference page has padding at the bottom.
  • The language list shows "Nederlands" instead of "Dutch".
  • A crash when converting some large fractions to small number types is gone.

Web app

  • Published on GitHub Pages: with Pascaline's title, icon, loading screen and banner, and no more Beta bar.
  • Works offline: it can be added to your home screen, and a new release shows on the next reload.
  • Saves your data: history, settings, functions and unit favorites used to be lost on reload.
  • Same layout as Android: Pascaline's history cards, input and keypad on wide screens.
  • Every feature works: date calculator, time zones with saved favorites, backup and restore as a file, language choice, calendar files for events, copy and paste, and the browser's back button.
  • Your preferences apply: saved theme, color and starting screen, plus day and month names, 24-hour clock, currency and units from the browser.
  • Fonts: Noto fonts for subscripts, maths symbols, Hindi and Chinese.
  • Function pages: page dots can be clicked, because a mouse can't swipe. eˣ and ×10ˣ now display correctly.
  • Fixes: divisions round like on Android, which fixes results that never end, like 1/3, and a crash in the converter's unit list.
  • Logarithms: fixed wrong results after calculating a logarithm near 3: ln, log and powers like 4^(1/2) stayed wrong until the page was reloaded.
  • Startup: the page shows what went wrong instead of turning white, with details for Safari, and offline caching is lighter on iPhones.

Under the hood

  • Gradle 9.8.2, Kotlin 2.4.21, KSP 2.3.13, Android Gradle Plugin 9.5.0, Compose Multiplatform 1.12.2, AndroidX Compose 1.12.1, Koin 4.2.2 and DataStore 1.3.0.
  • Compiles against Android 37.1, targets SDK 36.
  • Dependabot opens weekly updates, and those that pass are merged and published.
  • Every push and pull request builds Android and the web, then runs the host tests, Detekt and the shared tests in Firefox. Device tests are compiled, and the web app is started in Chromium. A push that fails isn't published.
  • Device tests repaired, with new tests for translated placeholders, unit names, the expression editor and layout.
  • One settings implementation shared by Android and the web.
  • All Detekt findings fixed with an empty baseline, and every TODO and FIXME resolved.
  • README rewritten with download buttons and install steps for Android and iPhone.