æ°å¤çï¼ãã£ã¸ã¿ã«ï¼ãªé¤ç®ã¢ã«ã´ãªãºã ã¯ããã¤ãåå¨ããããããã®ã¢ã«ã´ãªãºã ã¯ãä½éãªé¤ç®ã¨é«éãªé¤ç®ã®2ã¤ã«åé¡ã§ãããä½éãªé¤ç®ã¯å復ããæ¯ã«æçµçãªåã1æ¡ãã¤çæãã¦ããã¢ã«ã´ãªãºã ã§ãããå復åãä¸å®è¡å復åãéå復åãSRTé¤ç®ãªã©ããããé«éãªé¤ç®ã¯æåã«åã®è¿ä¼¼å¤ããåºçºãã¦å¾ã
ã«æ£ç¢ºãªå¤ã«è¿ã¥ãã¦ãããã®ã§ãä½éãªé¤ç®ãããå復åæ°ãå°ãªãã¦æ¸ãããã¥ã¼ãã³-ã©ãã½ã³æ³ã¨ã´ã¼ã«ãã·ã¥ãããæ³ãããã«åé¡ãããã 以ä¸ã®è§£èª¬ã§ã¯ãé¤ç®ã ã§è¡¨ãã Q = å (quotient) N = 被é¤æ°ï¼åå = numeratorï¼ D = é¤æ°ï¼åæ¯ = denominatorï¼ ã¨ããã procedure divide_unsigned(N, D: unsigned_integer; var Q, R: unsigned_integer); const n = 32; (
{{#tags}}- {{label}}
{{/tags}}