-5

10進数の「18.25」を2進数に変換するには?小数点 .25 で混乱してしまいました。

4

2 に答える 2

0
with recursiveCTE(num) as (
  select &EnterNum num from dual
  union all
  select trunc(num/2) from recursiveCTE
  where trunc(num/2)> 0
),
ref as (SELECT num, mod(num, 2) bin_remainder from recursiveCTE)
select reverse(to_char(replace(wm_concat(bin_remainder), ','))) binary_num from ref;
于 2016-06-16T06:05:22.927 に答える