Mxs&vincene─╄ovё&0000027─╄ovёmxs&vincene
Mxs&vincene─╄ovё: Today is very cruel, tomorrow is more brutal, the day after tomorrow is very good, but most people die in the evening, only those real heroes can see the sun after the day.
Mxs&vincene─╄ovё:we ' re Here's put a dent in the universe. Otherwise Why else even is here?
Text >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>
//Floating-point addition operationsfunction Floatadd (arg1,arg2) {varr1,r2,m; Try{r1=arg1.tostring (). Split (".")[1].length}Catch(e) {r1=0} Try{r2=arg2.tostring (). Split (".")[1].length}Catch(e) {r2=0} m=math.pow (Ten, Math.max (R1,R2)); return(arg1*m+arg2*m)/m;}//floating-point subtraction operationsfunction Floatsub (arg1,arg2) {varR1,r2,m,n; Try{r1=arg1.tostring (). Split (".")[1].length}Catch(e) {r1=0} Try{r2=arg2.tostring (). Split (".")[1].length}Catch(e) {r2=0} m=math.pow (Ten, Math.max (R1,R2)); //Dynamic Control accuracy lengthN= (R1=R2)?R1:R2; return((arg1*m-arg2*m)/m). toFixed (n);}//floating-point multiplication operationsfunction Floatmul (arg1,arg2) {varm=0, S1=arg1.tostring (), s2=arg2.tostring (); Try{M+=s1.split (".")[1].length}Catch(e) {}Try{M+=s2.split (".")[1].length}Catch(e) {}returnNumber (S1.replace (".","")) *number (S2.replace (".",""))/math.pow (Ten, m);} //floating-point division operationsfunction Floatdiv (arg1,arg2) {vart1=0, t2=0, R1,R2; Try{t1=arg1.tostring (). Split (".")[1].length}Catch(e) {}Try{t2=arg2.tostring (). Split (".")[1].length}Catch(e) {} with (Math) {R1=number (Arg1.tostring (). Replace (".","")); R2=number (Arg2.tostring (). Replace (".","")); return(R1/R2) *pow (Ten, t2-t1); }}
Subtraction fixed float type in JS