mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
18 lines
405 B
JavaScript
18 lines
405 B
JavaScript
export const fractionDocs = {
|
|
name: 'fraction',
|
|
category: 'Construction',
|
|
syntax: [
|
|
'fraction(num)',
|
|
'fraction(num,den)'
|
|
],
|
|
description:
|
|
'Create a fraction from a number or from a numerator and denominator.',
|
|
examples: [
|
|
'fraction(0.125)',
|
|
'fraction(1, 3) + fraction(2, 5)'
|
|
],
|
|
seealso: [
|
|
'bignumber', 'boolean', 'complex', 'index', 'matrix', 'string', 'unit'
|
|
]
|
|
}
|