I have an error while coding in google sheets.
It doesn't want to multiply the numbers, just displays them as floats without the suffix. This is my code:
function nordicImport(a){
var b = a;
var c = b.substring(0,b.length-1);
if(b.contains == "M"){
var c = parseFloat(b);
var d = c * 1000000;
return d;
}else if(b.contains == "K"){
var c = parseFloat(b);
var d = c * 1000;
return d;
}else{
var c = parseFloat(b);
return c;
}
}