wadelau / base62x Goto Github PK
View Code? Open in Web Editor NEWBase62x is an alternative approach to Base 64 without symbols in output. 无符号的Base64编码解码方案.
Home Page: https://ufqi.com/dev/base62x/
License: Apache License 2.0
Base62x is an alternative approach to Base 64 without symbols in output. 无符号的Base64编码解码方案.
Home Page: https://ufqi.com/dev/base62x/
License: Apache License 2.0
中文测试 转换出来的是vBYjvfQ7vhMBwAx2L
去掉末尾一个两个三个字符只是末尾输出一个乱字符
如果去掉后面4个字符
如
echo Base62x::decode('vBYjvfQ7vhMBw');
死循坏了
Hi guys,
I need help by editing a few of sentences on Base62x in Wikipedia.org.
It would be an appendage to the page of Base64 in Wikipedia.org or a newly-created item on it.
I am trying to do so to help more developers know the better approach we have built to the traditional Base64.
The attempt had been made myself but failed due to that I am one of the authors of Base62x.
Could you please help on this addition of Base62x to Wikipedia?
Thanks in advance.
<?php
$num = 362967911866744841;
print "$num / 60 = ".($dvd=sprintf('%.20F', $num/60))."\n";
print "$dvd * 60 = ".($num2=sprintf('%.20F', $dvd=$dvd*60))."\n";
print "num2 - num = ".($num3 = sprintf('%.20F', ($num2-$num)))."\n";
?>
Output:
362967911866744841 / 60 = 6049465197779081.00000000000000000000
6049465197779081.00000000000000000000 * 60 = 362967911866744832.00000000000000000000
num2 - num = 0.00000000000000000000
The error is that 362967911866744841 / 60 should be 6049465197779080.6833333333333333.
And also, 6049465197779081.00000000000000000000 * 60 is not equal to 362967911866744841 .
Due to this error, 362967911866744841 in Base 10 would be a1122334ef in Base 60, and K9XMIBhi09 in Base62x, but it will failed to reverse back from Base62x to Base 60 (a1122334ff).
Be careful in precision when dealing with extra long numbers!
There is no license in this repo, so effectively all code is proprietary and we can't use it for anything...
Hi guys, does base62x has golang version?
Just found in the README that these links are not available anymore:
[ -R/p2SK ](http://ufqi.com/naturedns/search?q=-r/C2TZ) , page url in [ -URL4P ](http://ufqi.com/naturedns/search?q=-url4p) .
[-Base62x in RearchGate, -R/12Sb ](http://ufqi.com/naturedns/search?q=-R/12Sb ) .
You might want to reference these to stable links instead of searching result.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.