Skip to content

Add BinToDec usage example for SplashKit utilities#672

Open
Mdanial01 wants to merge 1 commit intothoth-tech:usage-examplesfrom
Mdanial01:mdanial_bin_to_dec
Open

Add BinToDec usage example for SplashKit utilities#672
Mdanial01 wants to merge 1 commit intothoth-tech:usage-examplesfrom
Mdanial01:mdanial_bin_to_dec

Conversation

@Mdanial01
Copy link

Description

This PR adds a new SplashKit utility usage example demonstrating how to convert a
binary string into its decimal representation using the built-in bin_to_dec (Python/C++)
and BinToDec (C#) functions. It includes multi-language examples for Python, C++,
and C# (both OOP and top-level). The example is minimal, clear, and demonstrates the
function in the least number of lines possible.

Usefulness: A SplashKit user may want to convert binary data (e.g., bitmaps, memory flags,
or binary protocol data) into decimal form for calculations, visualization, or debugging.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Verified output in Python using SplashKit
  • Verified output in C++ using SplashKit
  • Verified output in C# (OOP and top-level) using SplashKit

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Firefox
  • npm run build
  • npm run preview

Checklist

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Folders and Files Added/Modified

  • Added:
    • public/usage-examples/utilities/bin_to_dec-1-example.py
    • public/usage-examples/utilities/bin_to_dec-1-example.cpp
    • public/usage-examples/utilities/bin_to_dec-1-example-oop.cs
    • public/usage-examples/utilities/bin_to_dec-1-example-top-level.cs
    • public/usage-examples/utilities/bin_to_dec-1-example.txt

Additional Notes

This example demonstrates the use of SplashKit’s bin_to_dec / BinToDec functions across
multiple languages, providing a consistent, minimal, and easy-to-follow example for developers.
bin_to_dec

@netlify
Copy link

netlify bot commented Oct 13, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 07edeea
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68ec520a2aee1e0008f7faa8
😎 Deploy Preview https://deploy-preview-672--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Mdanial01 Mdanial01 changed the base branch from main to usage-examples October 13, 2025 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant