#P51. 练10.3 计算浮点数相除的余

练10.3 计算浮点数相除的余

Description

Calculate the remainder when dividing two double-precision floating-point numbers aa and bb, where both aa and bb are double-precision floating-point numbers. Here, the remainder (rr) is defined as: a=k×b+ra = k \times b + r, where kk is an integer and 0r<b0 \le r < b.

Input Format

One line containing two double-precision floating-point numbers aa and bb.

Output Format

One line containing the remainder of a÷ba \div b.

Sample

73.263 0.9973
0.4601