Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Digit SphereNew to Visual Studio Code? Get it now.
Digit Sphere

Digit Sphere

Alvin Bellero

|
48 installs
| (1) | Free
| Sponsor
A math utility toolkit for VSCode using JavaScript's Math object
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Digit Sphere — VSCode Extension

This extension provides useful math utility functions to quickly round, ceil, and floor numbers, etc in your code. Powered by JavaScript's Math object, enhance your coding experience with seamless mathematical adjustments directly from your editor!

✨ Features

  • Round Numbers: Adjust numbers to specified decimal places with ease.
  • Ceil Numbers: Round up to the nearest specified decimal place.
  • Floor Numbers: Round down to the nearest specified decimal place.
  • Absolute Value: Get the absolute value of a number without any prompts.
  • Square Root: Calculate the square root of a number without any prompts.
  • Random Integer: Generate a random integer between a specified minimum and maximum value with prompts for the range.
  • Calculate Sine: Get the sine of the selected number.
  • Calculate Cosine: Get the cosine of the selected number.
  • Calculate Tangent: Get the tangent of the selected number.

🚀 Installation

  1. Install the extension from the Visual Studio Code Marketplace.
  2. Open the command palette (Ctrl+Shift+P or Cmd+Shift+P) and search for Digit Sphere commands.

🛠️ Usage

  1. Select the number(s) you want to adjust in the editor.
  2. Open the command palette and run one of the following commands:
    • Digit Sphere: Round Number 🔄
    • Digit Sphere: Ceil Number ⬆️
    • Digit Sphere: Floor Number ⬇️
    • Digit Sphere: Absolute Value ➕
    • Digit Sphere: Square Root √
    • Digit Sphere: Random Integer 🎲
    • Digit Sphere: Calculate Sine 🔄
    • Digit Sphere: Calculate Cosine 🔄
    • Digit Sphere: Calculate Tangent 🔄
  3. Enter the number of decimal places or other required parameters as prompted.
  4. The selected numbers will be modified accordingly!

⚙️ Configuration

You can customize the default decimal places for rounding, ceiling, and flooring operations. To do so, update the setting in your VSCode preferences:

  • digitSphere.defaultDecimalPlaces: Default number of decimal places for rounding operations (default is 2).

📜 License

This project is licensed under the MIT License. See the LICENSE file for more details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft