Post

Replies

Boosts

Views

Activity

Comment on error during division please help me
The lines that handle division in the provided code are present in the line that defines the division button in the second line of the ScrollView. Here is the specific line: CalculatorButton(title: "÷", color: electricOrange, action: { buttonTapped("/") }) The function associated with the ÷ split key is buttonTapped("/"), which calls the buttonTapped function with the "/" parameter when the key is pressed. The logic for splitting is implemented in the buttonTapped function itself.
Jan ’24