I’ve got the following code in my Javascript: This shows me the following data: The thing is that I only want the part after the comma. I tried getting it from reader.result.value, reader.result.valueOf() and some other combinations, but can’t find the correct one to JUST get the base64 string starting from after the comma. So a second idea is to
Tag: strip
strip decimal points from variable
I have a series of variables that have a decimal point and a few zeros. How do I strip the variable so it goes from 1.000 to 1? Answer Simply… …assuming you want to round 1.7 to 2. If not, use Math.floor for 1.7 to 1.