Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "quantity"

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>

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.11ec0ac28e1e5550f50d59e5ba0134d2270e800da5https://github.com/mgondan/quantity.git
51ebb6475c8b4b4bcf8b8388c673e35a112d83611https://github.com/mgondan/quantity.git
69aa7bb204da0bccd1f597b00f761c4393b8c1443https://github.com/mgondan/quantity.git
82c69f62d5c5c966190462358fe9bccedd22fbb72https://github.com/mgondan/quantity.git
8bc13856b58106e05d3878ac49a07f5db7bcbb351https://github.com/mgondan/quantity.git
96f8b77f72bb87fedb2a3474c40f19e0ab323d0c14https://github.com/mgondan/quantity.git
a1a54e2ab81b89ddf00ef825eca1387935765f751https://github.com/mgondan/quantity.git
a54b5a4434c0f7b94c3da64b54899b0c1082e8271https://github.com/mgondan/quantity.git
b9fc30a93d3a348b28b3c48fb050b6228915a7b51https://github.com/mgondan/quantity.git
dd2b31718d874b429338dd53321988b856570d691https://github.com/mgondan/quantity.git
de0c372d749a07bae015990d9f8de43cb2e4e0161https://github.com/mgondan/quantity.git
f0c6ead888879b323e2584ff849a4aaa208457821https://github.com/mgondan/quantity.git
f129d50edac2779c7731f1b22506a61b34145ea314https://github.com/mgondan/quantity.git
f56ae704fd428d36a526b04ced2b7db775ff8acf2https://github.com/mgondan/quantity.git

quantity

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

Installation and usage

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."

Contents of pack "quantity"

Pack contains 4 files holding a total of 37.6K bytes.