mirror of
https://github.com/heyman/heynote.git
synced 2025-06-20 09:37:50 +02:00
Increase number of digits needed before shortening numbers such as 3.7e+9
This commit is contained in:
parent
82f916122c
commit
686dc77e78
@ -49,7 +49,11 @@ function mathDeco(view) {
|
|||||||
|
|
||||||
// if we got a result from math.js, add the result decoration
|
// if we got a result from math.js, add the result decoration
|
||||||
if (result !== undefined) {
|
if (result !== undefined) {
|
||||||
builder.add(line.to, line.to, Decoration.widget({widget: new MathResult(math.format(result, 8)), side: 1}))
|
builder.add(line.to, line.to, Decoration.widget({widget: new MathResult(math.format(result, {
|
||||||
|
precision: 8,
|
||||||
|
upperExp: 8,
|
||||||
|
lowerExp: -6,
|
||||||
|
})), side: 1}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pos = line.to + 1
|
pos = line.to + 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user