mirror of
https://github.com/heyman/heynote.git
synced 2024-11-25 09:23:17 +01: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 (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
|
||||
|
Loading…
Reference in New Issue
Block a user