-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|637|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Showcase Home -> Apps and Utilities


 
cthug
Created : 25 July 2009
Edited : 27 July 2009
System : Cross Platform
Language : Forth

base10

Convert binary, quaternary, octal and hexadecimal to decimal (base 10)

linux binary (source included)
windows binary (source included)
Converts from binary (base 2), quaternary (base 4), octal (base 8) and hexadecimal (base 16) to decimal (base 10). Can handle numbers from 0 to 18446744073709551615 (that is 0xFFFFFFFFFFFFFFFF).

|edit| Linux binary has install script included. |edit|

|edit| Freebasic Source: |edit|


screenshot:

 

Comments


Sunday, 26 July 2009, 05:38
Phoenix
A slightly related snippet I wrote a while ago, for expressing binary constants in C++ using template metaprogramming. The benefit of doing it this way is that it all happens during compile-time.

I don't think it's terribly purposeful, apart from being a cool way of doing it.

|edit| Oh, and by the way, I will never touch anything licensed under GPL. Public domain FTW! |edit|

|edit| And does this really qualify as a showcase? |edit|
Monday, 27 July 2009, 00:47
cthug
It probably should have been a code snippet but meh, Phoenix it can be public domain, GPL is just the standard header for geany which I use with freebasic.