Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
Title: | Parse quantities like "1.5 kg" and return some formatting information. |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 0.1 |
SHA1 sum: | f56ae704fd428d36a526b04ced2b7db775ff8acf |
Author: | Matthias Gondan <Matthias.Gondan@psy.ku.dk> |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.1 | f56ae704fd428d36a526b04ced2b7db775ff8acf | 2 | https://github.com/mgondan/quantity.git |
de0c372d749a07bae015990d9f8de43cb2e4e016 | 1 | https://github.com/mgondan/quantity.git | |
b9fc30a93d3a348b28b3c48fb050b6228915a7b5 | 1 | https://github.com/mgondan/quantity.git | |
f0c6ead888879b323e2584ff849a4aaa20845782 | 1 | https://github.com/mgondan/quantity.git | |
82c69f62d5c5c966190462358fe9bccedd22fbb7 | 2 | https://github.com/mgondan/quantity.git | |
51ebb6475c8b4b4bcf8b8388c673e35a112d8361 | 1 | https://github.com/mgondan/quantity.git | |
69aa7bb204da0bccd1f597b00f761c4393b8c144 | 3 | https://github.com/mgondan/quantity.git | |
dd2b31718d874b429338dd53321988b856570d69 | 1 | https://github.com/mgondan/quantity.git | |
a54b5a4434c0f7b94c3da64b54899b0c1082e827 | 1 | https://github.com/mgondan/quantity.git | |
a1a54e2ab81b89ddf00ef825eca1387935765f75 | 1 | https://github.com/mgondan/quantity.git | |
1ec0ac28e1e5550f50d59e5ba0134d2270e800da | 5 | https://github.com/mgondan/quantity.git | |
96f8b77f72bb87fedb2a3474c40f19e0ab323d0c | 14 | https://github.com/mgondan/quantity.git | |
8bc13856b58106e05d3878ac49a07f5db7bcbb35 | 1 | https://github.com/mgondan/quantity.git | |
f129d50edac2779c7731f1b22506a61b34145ea3 | 14 | https://github.com/mgondan/quantity.git |
Prolog package to parse quantities such as "1.5 kg" or "1E-10" or "p < .001". Its main purpose is give feedback to users of an e-learning system to provide numeric input in the correct format (e.g., t-ratios with 2 decimal places).
You can find a SWISH demo here, https://swish.swi-prolog.org/p/quantity-0.1.swinb
Simple usage example from the SWI-Prolog console:
pack_install(quantity). use_module(library(quantity)). quantity("1.5 kg", Number, Options).
For more examples, type "ex_quant."
Pack contains 4 files holding a total of 37.6K bytes.