function strValueX(de,x,w,g,ub,ua) { var z = g.getAttributeNS(null, 'zero'), s = g.getAttributeNS(null, 'scale'), p = g.getAttributeNS(null, 'precision'); return ub + ((x - z) / s).toFixed(p) + ua; }