formula

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 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) (result float64, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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