function plus(num1,num2){
var place1=place2=0
try {
place1= (num1+'').split('.')[1].length
} catch (error) {}
try {
place2 += (num2+'').split('.')[1].length
} catch (error) {}
var place = Math.max(place1,place2)
var number = num1 + num2
return Math.round(number * Math.pow(10, place)) / Math.pow(10, place);
}
function minus(num1,num2){
var place1=place2=0
try {
place1= (num1+'').split('.')[1].length
} catch (error) {}
try {
place2 += (num2+'').split('.')[1].length
} catch (error) {}
var place = Math.max(place1,place2)
var number = num1 - num2
return Math.round(number * Math.pow(10, place)) / Math.pow(10, place);
}
function times(num1,num2){
var place=0
try {
place += (num1+'').split('.')[1].length
} catch (error) {}
try {
place += (num2+'').split('.')[1].length
} catch (error) {}
var number = num1 * num2
return Math.round(number * Math.pow(10, place)) / Math.pow(10, place);
}
function div(num1,num2){
var place1=place2=0
try {
place1= (num1+'').split('.')[1].length
} catch (error) {}
try {
place2 += (num2+'').split('.')[1].length
} catch (error) {}
var place = Math.max(place1,place2)-Math.min(place1,place2)
var number = num1 / num2
return Math.round(number * Math.pow(10, place)) / Math.pow(10, place);
}
function round(number,place){
return Math.round(number * Math.pow(10, place)) / Math.pow(10, place);
}