ReConvertNumber( RC ; number ; digits )
Rate this function: Average rating: 3.8 (4 votes) Discuss this Custom Function
Erich Schmidt, Schmidt-IT-Beratung
http://www.schmidt-it-beratung.de
Number conversion
Sample Input:
ReConvertNumber(0 ; "10001011","01")
ReConvertNumber(0 ; "X000X0XX","0X")
ReConvertNumber(0 ; "1F","0123456789ABCDEF")
|
|
Sample Output:
|
Description:
The function reconverts a number from an arbitrary numeral system to the decimal system.
This is in a certain way the inverse function of ConvertNumber. Assumed that the function call ConvertNumber("";d;n;digits) returns an x, then gives ReConvertNumber(0;x;digits) the value d.
The parameter "digits" determines the base of the used numeral system and must contain its figures in ascending order.
The parameter "number" is the number to be converted. If "number" contains figures that are not appear within "digits", the function returns a question mark.
If digits contains less than 2 characters a conversion from binary (with figures 0 and 1) is assumed.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
ListToggle ( InList ; InValue ) |
| |
(Thu, May 16, 6:59pm) |
| 2. |
VatFormat ( vat ) |
| |
(Tue, May 14, 2:45am) |
| 3. |
CheckVatBE ( vat ) |
| |
(Tue, May 14, 2:32am) |
| 4. |
CheckIBAN (IBAN ) |
| |
(Tue, May 14, 2:24am) |
| 5. |
OrcidCheckDigit ( Orcid_id ; Result ; Iterations ) |
| |
(Wed, May 08, 1:44am) |
| 6. |
DateRangeBySpan ( Begin ; End ; Term) |
| |
(Mon, May 06, 6:53am) |
| 7. |
Convert_Arabic_to_Chinese( number ) |
| |
(Thu, May 02, 6:10am) |
| 8. |
NPVV ( cashFlowList, interestRate ) |
| |
(Sun, Apr 28, 1:56pm) |
 |
|