Math.floor on a math calculation
<p>I have made an calculation, took of the decimals but now i would like to make so that it show a down rounded number.
I found that i can use math.floor but i can't get it in the code.
I took the decimals off but can't get it to round down.</p>

<p>code is like this (the part which does the math):</p>

<pre><code>public void onClick(View view) {
    if (etBarfles.getText().toString().equals("")) {
        Toast.makeText(getActivity(), "Vul zowel bar in fles, inhoud fles als liters per " +
                "minuut in!", Toast.LENGTH_SHORT).show();
    } else {
        if (etInhoudfles.getText().toString().equals("")) {
            Toast.makeText(getActivity(), "Vul zowel bar in fles, inhoud fles als liters per " +
                    "minuut in!", Toast.LENGTH_SHORT).show();
        } else {
            if (etLitersperminuut.getText().toString().equals("")) {
                Toast.makeText(getActivity(), "Vul zowel bar in fles, inhoud fles als liters " +
                        "per minuut in!", Toast.LENGTH_SHORT).show();
            } else {
            }
            tvResult.setText(nodecimals((((Float.parseFloat(etBarfles.getText().toString()) *
                    (Float.parseFloat(etInhoudfles.getText().toString())) / (Float.parseFloat
                    (etLitersperminuut.getText().toString()))) / 60))));
        }
    }
}

private String nodecimals(float val) {
    return String.format("%.0f", val);
}
</code></pre>