# coding=utf-8 name = 'megabytes/2' slug = 'convert mebibytes to megabytes' description = '''\

A megabyte is the SI unit meaning 106 bytes, while a mebibyte is the IEC unit meaning 220 bytes. Write the predicate megabytes(SI, IEC) that converts between the two using constraints.

?- megabytes(2, IEC).
  IEC = 1.9073486328125.
?- megabytes(SI, 2).
  SI = 2.097152.
''' hint = {}