formula

package module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 4 Imported by: 0

README

To calculate simple arithmetical formulae.

Examples:

package main

import (
  "fmt"

  "github.com/tksasha/formula"
)

func main() {
  result, _ := formula.Calculate("7*8")

  fmt.Println(result) // 56
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(formula string) (float64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL