summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_r/megabytes_2/sl.py
blob: e88c48eecd4cc8a46d44d78c5d7f5e3f8ab34c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding=utf-8

name = 'megabytes/2'
slug = 'prevedi vrednosti v mebibajtih v megabajte'

description = '''\
<p><em>Mega</em>bajt je SI enota, ki pomeni 10<sup>6</sup> bajtov, medtem, ko je <em>mebi</em>bajt IEC enota, ki pomeni 2<sup>20</sup> bajtov. NapiĊĦi predikat <code>megabytes(SI, IEC)</code>, ki prevaja med tema enotama z uporabo omejitev.</p>
<pre>
?- megabytes(2, IEC).
  IEC = 1.9073486328125.
?- megabytes(SI, 2).
  SI = 2.097152.
</pre>'''

hint = {}