summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_r/megabytes_2
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/clp_r/megabytes_2')
-rw-r--r--prolog/problems/clp_r/megabytes_2/sl.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/prolog/problems/clp_r/megabytes_2/sl.py b/prolog/problems/clp_r/megabytes_2/sl.py
new file mode 100644
index 0000000..e88c48e
--- /dev/null
+++ b/prolog/problems/clp_r/megabytes_2/sl.py
@@ -0,0 +1,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 = {}