Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

square root on answer

Aperta
#267 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
40/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
android, kotlin
Ambito
mobile

Direzione di ricerca

The payload names no source files or tests, so start from CONTRIBUTING.md and find where the calculator parses the sqrt button against the expression in progress. Reproduce it by typing a number, pressing sqrt, and checking that it multiplies the following value instead of applying to the current one. Done means sqrt acts as a unary operator on the active value, with the second behaviour in the issue used only if the first needs a major rework.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature request needs triage
Checklist
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the request will be dismissed otherwise.
  • This issue contains only one feature request.
  • I have read and understood the contribution guidelines.
Feature description

Issue: square root is treated as a binary operator (left * sqrt(right)). Square root is a unary operator.

Suggestion: when the user presses the "square root" button the behavior should depend on what is currently in the active input:

  1. Just a <value> → √<value> →<result>
    (Or just value → result)
  2. <value> and <operator> → <value> <operator> √ [waits for value]

If #2 requires a major rework, keep the current behavior of → <value>√[waits for value]

Why do you want this feature?

Practical use of sqrt requires re-entry of result. Also, the current handling of sqrt is not how calculators normally work

Additional information

No response

Lingua principale
Kotlin
Stelle
450
Fork
57
Merge medio
1g 19h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FossifyOrg/Calculator

Tutte le issue di FossifyOrg/Calculator

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.