Give any two of voltage, current, resistance and power, and this works out the other two — including the power the resistor has to dissipate, which is the figure that decides whether it survives.
Voltage
12 V
Current
2 A
Resistance
6 Ω
Power
24 W
V = I × R · P = V × I = I²R = V²/R
Ohm's law is one equation with three letters, and the fourth quantity — power — is the one that actually burns things. A resistor picked correctly for resistance and wrongly for wattage works perfectly until it discolours the board around it. Give this page any two of the four and it fills in the rest, so you can see the dissipation before you order the part rather than after.
V = I × R · P = V × I = I²R = V²/R
The ohm is defined so that one volt across one ohm drives one ampere, and the watt so that one volt at one ampere delivers one joule per second. Every form above follows from substituting one into the other, which is why any two quantities are enough and a third can only agree or contradict.
Source: NIST SP 811 (2008), Appendix B.8 — ohm (Ω), the SI unit of resistance: 1 Ω = 1 V/A
A number that disagrees with its source is a defect, not a rounding preference.
What did you enter, what did the tool show, and what did you expect instead? If you have a source that disagrees with ours, a link to it is the most useful thing you can send.
Opens your mail app with the page and tool already filled in.