Use KalkNum's to_string() function in to_scientific_notation()

This commit is contained in:
bakk 2021-05-18 23:20:23 +02:00
parent 121aafa118
commit 4c92062117
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ impl KalkNum {
impl KalkNum {
pub fn to_scientific_notation(&self) -> ScientificNotation {
let value_string = self.value.to_string();
let value_string = self.to_string();
let trimmed = if value_string.contains(".") {
value_string.trim_end_matches("0")
} else {

View File

@ -1,6 +1,6 @@
{
"name": "@paddim8/kalk-component",
"version": "1.0.15",
"version": "1.0.16",
"description": "A Svelte component for kalk, a calculator that supports user-defined functions and variables.",
"svelte": "src/main.ts",
"main": "public/build/bundle.js",