hardware precision casting

hardware precision casting