This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function atoix(a) { | |
| if(a~/Pi?B/) return int(a)*1024^5; | |
| if(a~/Ti?B/) return int(a)*1024^4; | |
| if(a~/Gi?B/) return int(a)*1024^3; | |
| if(a~/Mi?B/) return int(a)*1024^2; | |
| if(a~/Ki?B/) return int(a)*1024^1; | |
| return int(a); | |
| } | |
| function itoax(i) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hello, gist |
NewerOlder