binary_converter 0.0.1
binary_converter: ^0.0.1 copied to clipboard
A lightweight Dart package providing utility functions for converting numbers between common numeral systems (binary, octal, decimal, and hexadecimal).
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.1 - 2025-07-20 #
Added #
- Initial release of the
binary_conversionpackage. - Implemented
BinaryConverterclass with comprehensive methods for:- Binary to Decimal, Octal, Hexadecimal conversions.
- Decimal to Binary, Octal, Hexadecimal conversions.
- Octal to Binary, Decimal conversions.
- Hexadecimal to Binary, Decimal conversions.
- Included robust input validation for all conversion methods.
- Utilized Dart's built-in
int.parse(radix:)andint.toRadixString()for efficient decimal conversions. Implemented custom logic for direct binary-to-octal/hexadecimal and vice-versa conversions using bit grouping.