Toolverse
All skills

calculator

by Code-and-Sorts

Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Mobile
Views
10

About this skill

Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.

How to use

  1. Upewnij się, że masz zainstalowany Node.js i npm na swoim komputerze. Umiejętność wymaga tych narzędzi do działania.

  2. Przejdź do katalogu scripts w folderze umiejętności kalkulatora, używając terminala lub wiersza poleceń.

  3. Zainstaluj zależności, uruchamiając polecenie npm ci (lub npm install, jeśli npm ci nie zadziała). To pobierze bibliotekę big.js, która obsługuje precyzyjne obliczenia dziesiętne.

  4. Skompiluj umiejętność, wpisując npm run build. Ten krok przygotowuje kod do użycia.

  5. Uruchom kalkulator, podając wyrażenie matematyczne jako argument: npm run calculate "wyrażenie". Na przykład: npm run calculate "2 + 3 * 4" zwróci 14, npm run calculate "10 / 4" zwróci 2.5, a npm run calculate "2 ^ 10" zwróci 1024. Możesz używać nawiasów, aby zmienić kolejność operacji — np. npm run calculate "(2 + 3) * 4" da wynik 20.

  6. Jeśli wyrażenie zawiera błędy (puste wyrażenie, niedopasowane nawiasy lub dzielenie przez zero), kalkulator wyświetli komunikat o błędzie. Pamiętaj, że wykładniki muszą być liczbami całkowitymi — nie możesz obliczyć 2 do potęgi 0.5.

Related skills

create-plan

by antinomyhq

Generate detailed implementation plans for complex tasks. Creates comprehensive strategic plans in Markdown format with objectives, step-by-step implementation tasks using checkbox format, verification criteria, risk assessments, and alternative approaches. Use when users need

Mobile
13108

mobile-ios-design

by wshobson

Master iOS Human Interface Guidelines and SwiftUI patterns for building native iOS apps. Use when designing iOS interfaces, implementing SwiftUI views, or ensuring apps follow Apple's design principles.

Mobile
107284

mobile-android-design

by wshobson

Master Material Design 3 and Jetpack Compose patterns for building native Android apps. Use when designing Android interfaces, implementing Compose UI, or following Google's Material Design guidelines.

Mobile
38181

flutter-development

by aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

Mobile
1,1601,122

react-native-design

by wshobson

Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.

Mobile
1964

godot

by bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI

Mobile
547680