Skip to content

Instantly share code, notes, and snippets.

@divs1210
divs1210 / tinyaprs.js
Created November 26, 2021 14:33
Tinyman APRs
javascript:(function(){
function parseDollarVal(_txt) {
let txt = _txt.split("$")[1] || "0";
let lastChar = txt[txt.length-1];
let multiplier =
lastChar == 'M' ? 1000000
: lastChar == 'K' ? 1000
: 1;