Number it.. Use Number() .. parseInt
and parseFloat
may change your result so go for Number()
function which converts the object argument to a number that represents the object's value.
var TuesdaysRatio = Number(myTuesdaysNewLikesTotal / myTuesdaysImpressionsOrganicTotal);