flat assembler
Message board for the users of flat assembler.
Index
> Projects and Ideas > Universal Converter of the Numeral Systems. |
Author |
|
MHajduk 11 Nov 2008, 17:56
Hi!
I wish to present here written with FASM utility UniCNuS which converts in real time any integer number from the set {0, ..., 2^32-1} denoted in the numeral system with base b є {2, ..., 2^32-1} into a proper representation in the numeral system with base b' є {2, ..., 2^32-1}. Input data Data typed into any of the program edit fields are analysed in the real time and the result of this analysis is shown immediately in the other edit controls. Thanks to specific mechanism, edit fields allow to input symbols only from the particular set of characters. There is also impossible to type in a number which exceeds 2^32-1. When the input data are incomplete (improper number or order of brackets in the representation of the given number in numeral system with base b > 10) then text color is changed from brown to red. Input number denoted in the numeral system with base b > 10 can consist of such digits: 0, ..., 9, (10), ..., (b-1) Instead digits with values from 10 to 35 Latin letters A, ..., Z can be used. About possibility of using letter symbols informs state of the check box with 'A-Z' label. Produced results Content of edit fields can be copied into the clipboard by pushing the button with a picture of two paper sheets or by pressing the hotkey WIN + F11. Copied text is kept in RTF and Unicode formats, so text editors supporting RTF format (as WordPad or Word) will show pasted clipboard content as presented below: where x is a representation of the given number in the numeral system with base b and x' represents the same number in the system with base b'. Text editors which support only raw text format (as Notepad and UniRed for example) will show the same equality this way: User interface Every application control has assigned tooltip which describes its purpose. Moreover, edit fields where number representations in the various numeral systems are input have dynamically generated tooltips wherein allowed digits are listed: Edit fields have context menus which determine possible edit operations: Program settings Before closing of the application window program saves its settings (recently used bases of the numeral systems) in the registry key HKEY_CURRENT_USER\Software\UniCNuS Other possibilities Application can cipher short words as it is shown on the picture below: Some other interesting examples of the conversions: Application can be downloaded here. Project's homepage: http://mikhajduk.houa.org/EN/UniCNuS.php Because program was designed in 3 language versions here you have also: Program tested under Windows XP SP3. |
|||
11 Nov 2008, 17:56 |
|
revolution 11 Nov 2008, 18:15
Looks very nice. Thanks for the post.
|
|||
11 Nov 2008, 18:15 |
|
MHajduk 11 Nov 2008, 18:31
In case if you have any problems with downloading program from site here you have archive with English version of application:
Last edited by MHajduk on 12 Nov 2008, 08:13; edited 1 time in total |
|||||||||||
11 Nov 2008, 18:31 |
|
windwakr 12 Nov 2008, 01:47
Neat.
|
|||
12 Nov 2008, 01:47 |
|
MHajduk 12 Nov 2008, 07:48
all
Thanks for good words. LocoDelAssembly LocoDelAssembly wrote: Any plans to extend the input set (while still keeping the base set as it is now)? Or you mean extending input set of numbers to "real" numbers (some subset of rational numbers - set of fractions denoted with fixed precision)? It could be done, of course... LocoDelAssembly wrote: how did you find those ciphering examples? |
|||
12 Nov 2008, 07:48 |
|
dead_body 12 Nov 2008, 10:35
nice programm
|
|||
12 Nov 2008, 10:35 |
|
revolution 12 Nov 2008, 11:08
Although it seems not to be stated it would appear that the base input boxes are in base-10, perhaps you can also allow for different bases to be use for the base representation.
All your base are belong to us. |
|||
12 Nov 2008, 11:08 |
|
vid 12 Nov 2008, 12:05
|
|||
12 Nov 2008, 12:05 |
|
LocoDelAssembly 12 Nov 2008, 13:33
Quote:
This one But in fact I mean just extend to a much bigger subset of $\mathbb{N} \cup \{0\}$ |
|||
12 Nov 2008, 13:33 |
|
DJ Mauretto 12 Nov 2008, 16:53
Bravo!
_________________ Nil Volentibus Arduum |
|||
12 Nov 2008, 16:53 |
|
MHajduk 12 Nov 2008, 17:46
all
Thanks again. revolution Yeah, base input boxes contain bases denoted in decimal numeral system. LocoDelAssembly I understand, but moving to the numbers bigger than 2^32-1 will complicate converting procedures. However I think that limit 2^64-1 is quite reachable. |
|||
12 Nov 2008, 17:46 |
|
Picnic 19 Nov 2008, 22:27
Excellent program MHajduk.
Your didn't include the source code this time |
|||
19 Nov 2008, 22:27 |
|
MHajduk 20 Nov 2008, 08:19
Thank you, thimis.
Most of the solutions in this program were presented in the Simple Password Generator source. |
|||
20 Nov 2008, 08:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.