The java.lang.Math class has ceil(), floor(), round() methods, but does not have trunc() one.
At the same time I see on the practice that the .intValue() method (which does actually (int) cast) does exactly what I expect from trunc() in its standard meaning.
However I cannot find any concrete documentation which confirms that intValue() is a full equivalent of trunc() and this is strange from many points of view, for example:
- The description "Returns the value of this Double as an int (by casting to type int)" from https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html does not say anything that it "returns the integer part of the fractional number" or like that. 
- The article What is .intValue() in Java? does not say anything that it behaves like trunc(). 
- All my searches for "Java trunc method" or like that didn't give anything as if I am the only one who searches for trunc() and as if I don't know something very common that everyone knows. 
Can I get somehow the confirmation that I can safely use intValue() in order to get fractional numbers rounded with "trunc" mode?
 
     
     
    