The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Math::Tutor::Role::FracExercise - role for exercises in calculation with units

ATTRIBUTES

relevant_units

Specifies relevant units. Option argument can be either a list of units to take care, or starting with an exclamation mark, a list of units to skip.

Known units contain time, length, weight, euro, pound, dollar.

unit_length

Allowes one to limit the "length" of a unit. While some unit categories have many entries (e.g. time - which can result in ${a} w ${b} d ${c} h ${d} min ${e} s ${f} ms) - limiting the length would result in not more than ${unit_length} elements per number.

deviation

When more than one operand is involved, control deviation using this option. Best results with unit_length.

LICENSE AND COPYRIGHT

Copyright 2010-2014 Jens Rehsack.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.