Java tutorial
//package com.java2s; public class Main { public static double normalizeAngle(double degree) { return (StrictMath.IEEEremainder(degree, 360)); } }