Java Code Examples for com.ruoyi.common.utils.Arith#round()

The following examples show how to use com.ruoyi.common.utils.Arith#round() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Cpu.java    From supplierShop with MIT License 4 votes vote down vote up
public double getTotal()
{
    return Arith.round(Arith.mul(total, 100), 2);
}
 
Example 2
Source File: Cpu.java    From supplierShop with MIT License 4 votes vote down vote up
public double getSys()
{
    return Arith.round(Arith.mul(sys / total, 100), 2);
}
 
Example 3
Source File: Cpu.java    From supplierShop with MIT License 4 votes vote down vote up
public double getUsed()
{
    return Arith.round(Arith.mul(used / total, 100), 2);
}
 
Example 4
Source File: Cpu.java    From supplierShop with MIT License 4 votes vote down vote up
public double getWait()
{
    return Arith.round(Arith.mul(wait / total, 100), 2);
}
 
Example 5
Source File: Cpu.java    From supplierShop with MIT License 4 votes vote down vote up
public double getFree()
{
    return Arith.round(Arith.mul(free / total, 100), 2);
}
 
Example 6
Source File: Cpu.java    From RuoYi-Vue with MIT License 4 votes vote down vote up
public double getTotal()
{
    return Arith.round(Arith.mul(total, 100), 2);
}
 
Example 7
Source File: Cpu.java    From RuoYi-Vue with MIT License 4 votes vote down vote up
public double getSys()
{
    return Arith.round(Arith.mul(sys / total, 100), 2);
}
 
Example 8
Source File: Cpu.java    From RuoYi-Vue with MIT License 4 votes vote down vote up
public double getUsed()
{
    return Arith.round(Arith.mul(used / total, 100), 2);
}
 
Example 9
Source File: Cpu.java    From RuoYi-Vue with MIT License 4 votes vote down vote up
public double getWait()
{
    return Arith.round(Arith.mul(wait / total, 100), 2);
}
 
Example 10
Source File: Cpu.java    From RuoYi-Vue with MIT License 4 votes vote down vote up
public double getFree()
{
    return Arith.round(Arith.mul(free / total, 100), 2);
}
 
Example 11
Source File: Cpu.java    From ruoyiplus with MIT License 4 votes vote down vote up
public double getTotal()
{
    return Arith.round(Arith.mul(total, 100), 2);
}
 
Example 12
Source File: Cpu.java    From ruoyiplus with MIT License 4 votes vote down vote up
public double getSys()
{
    return Arith.round(Arith.mul(sys / total, 100), 2);
}
 
Example 13
Source File: Cpu.java    From ruoyiplus with MIT License 4 votes vote down vote up
public double getUsed()
{
    return Arith.round(Arith.mul(used / total, 100), 2);
}
 
Example 14
Source File: Cpu.java    From ruoyiplus with MIT License 4 votes vote down vote up
public double getWait()
{
    return Arith.round(Arith.mul(wait / total, 100), 2);
}
 
Example 15
Source File: Cpu.java    From ruoyiplus with MIT License 4 votes vote down vote up
public double getFree()
{
    return Arith.round(Arith.mul(free / total, 100), 2);
}