1. A method of representing coordinate values of a bounding box by a device including at least one processor, the method comprising: receiving, by the at least one processor, a minimum value and a maximum value of coordinate values of the bounding box as floating point values; converting, by the at least one processor, the minimum value and the maximum value to fixed point values; determining, by the at least one processor, a difference value between the minimum and maximum values; converting, by the at least one processor, the difference value to an exponent and a mantissa, performing, by the at least one processor, a ray-node intersection test using the fixed point value of either the maximum value or the minimum value, and the difference value; generating, by the at least one processor, an image by performing ray tracing based on a result of the ray-node intersection test; rounding down, by the at least one processor, the minimum value; rounding up, by the at least one processor, the difference value, wherein the determining of the difference value by the at least one processor comprises obtaining a difference value between the rounded down minimum value and the maximum value; pre-scaling, by the at least one processor, the minimum and maximum values to a pre-set first decimal place; and converting, by the at least one processor, the rounded down minimum value to an integer, wherein the rounding down by the processor comprises rounding down the pre-scaled minimum value, and the determining of the difference value by the at least one processor comprises obtaining a difference value between the pre-scaled maximum value and the rounded down minimum value.