rem is done. Using floating-point. You can test and get plot