Adding selectable precision to gradient test variables