Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Smart Mode

Liam Riddell edited this page Oct 6, 2020 · 5 revisions

NoteMaster Beta introduces the first key feature that makes NoteMaster unique. Smart Mode automatically recognizes keywords, and intelligently provides results as you type.

Here's the full list of functionality:

Unit Conversion

With in (into, as, to) you can convert one unit into another. Smart Mode will automatically convert units to perform operations if it's needed during conversion.

100cm in meters
10m - 100cm

Operations

You can use sign and word operators. Several expressions might be stacked together.

8 times 9
100 + 100
100 + 10 / 2
Operation Sample
Addition +, plus, add, and
Subtraction -, minus, remove, subtract
Multiplication *, times
Division /, divide
Exponent ^
Left Shift <<
Right Shift >>
Modulo %

Numbers

Besides decimal numeral system, it is also possible to use hexadecimal numbers using appropriate prefix: 0x.

100
104.5
0x104

Currency

You can use ISO 4217 codes for currency (like USD, RUB, CAD etc). You can also use common currency names and signs, like $ for the US dollars, or for Euro.

NoteMaster updates currency rates several times a day using exchange rates api service.

Percentage

In addition to general percentage operations like adding or subtracting percent of value ($10 - 40%), you also can use additional operations:

Operation Example
Percentage value 20% of $10

Variables

You can declare variables and reuse them using the = operator. Please note some characters and keywords cannot be used as a variable. For example, K might be used as a temperature unit in Kelvin. Variable names should not contain whitespaces or special characters, and should not start with number:

$v = $20
$v2 = 5%
$v times 7 - $v2

Constants

Description Value
Pi 3.1415926536
E 2.7182818285

Functions - Partial Support

By default trigonometrical functions uses parameters in radians.

Description Function Example
Square root sqrt sqrt(16)
Natural logarithm ln ln(3)
Sine sin sin(45deg)
Cosine cos cos(3.45)
Tangent tan tan(8)
Arcsine asin asin(30)
Arccosine acos acos(85)
Arctangent atan atan(9)

Units of Measurement prefixes

NoteMaster supports all the followings UoM's. Please note, that all UoM's prefixes are case sensitive.

Length

  • mm
  • cm
  • m
  • in
  • ft-us
  • ft
  • fathom
  • mi
  • nMi

Area

  • mm2
  • cm2
  • m2
  • ha
  • km2
  • in2
  • ft2
  • ac
  • mi2

Mass

  • mcg
  • mg
  • g
  • kg
  • oz
  • lb
  • mt
  • t

Volume

  • mm3
  • cm3
  • ml
  • l
  • kl
  • m3
  • km3
  • tsp
  • Tbs
  • in3
  • fl-oz
  • cup
  • pnt
  • qt
  • gal
  • ft3
  • yd3

Volume Flow Rate

  • mm3/s
  • cm3/s
  • ml/s
  • cl/s
  • dl/s
  • l/s
  • l/min
  • l/h
  • kl/s
  • kl/min
  • kl/h
  • m3/s
  • m3/min
  • m3/h
  • km3/s
  • tsp/s
  • Tbs/s
  • in3/s
  • in3/min
  • in3/h
  • fl-oz/s
  • fl-oz/min
  • fl-oz/h
  • cup/s
  • pnt/s
  • pnt/min
  • pnt/h
  • qt/s
  • gal/s
  • gal/min
  • gal/h
  • ft3/s
  • ft3/min
  • ft3/h
  • yd3/s
  • yd3/min
  • yd3/h

Temperature

  • C
  • F
  • K
  • R

Time

  • ns
  • mu
  • ms
  • s
  • min
  • h
  • d
  • week
  • month
  • year

Frequency

  • Hz
  • mHz
  • kHz
  • MHz
  • GHz
  • THz
  • rpm
  • deg/s
  • rad/s

Speed

  • m/s
  • km/h
  • m/h
  • knot
  • ft/s

Pace

  • s/m
  • min/km
  • s/ft
  • min/km

Pressure

  • Pa
  • hPa
  • kPa
  • MPa
  • bar
  • torr
  • psi
  • ksi

Digital

  • b
  • Kb
  • Mb
  • Gb
  • Tb
  • B
  • KB
  • MB
  • GB
  • TB

Illuminance

  • lx
  • ft-cd

Parts-Per

  • ppm
  • ppb
  • ppt
  • ppq

Voltage

  • V
  • mV
  • kV

Current

  • A
  • mA
  • kA

Power

  • W
  • mW
  • kW
  • MW
  • GW

Apparent Power

  • VA
  • mVA
  • kVA
  • MVA
  • GVA

Reactive Power

  • VAR
  • mVAR
  • kVAR
  • MVAR
  • GVAR

Energy

  • Wh
  • mWh
  • kWh
  • MWh
  • GWh
  • J
  • kJ

Reactive Energy

  • VARh
  • mVARh
  • kVARh
  • MVARh
  • GVARh

Angle

  • deg
  • rad
  • grad
  • arcmin
  • arcsec

Charge

  • c
  • mC
  • μC
  • nC
  • pC

Force

  • N
  • kN
  • lbf

Acceleration

  • g (g-force)
  • m/s2

Temperature

Supported units: kelvin, celsius, fahrenheit

Length

Supported units: meter, mil, points, lines, inch, hand, foot, yard, rod, chain, furlong, mile, cable, nautical mile, league. Note, since in used as a conversion operator, you cannot use it for inches.

Area

Supported units: hectare, are, acre and all "squared" length units.

20 cm2
30 in2

Volume

Supported units: Pint, quart, gallon, tea spoon, table spoon, cup.

Weight

Supported units: gram, tonne, pound, stone, ounce.

Angular

Supported units: radians (rad), degree (deg).

Data

Supports all digital units.

Format

Use hash symbol at the beginning of the line to make a header. If you want to comment part of the line, use double quotes. To comment all line, use double slash.

# This is header
$275 for the "Model 227"

// This is comment
Price: $11 + $34.45

Not what you're looking for or have a great idea?

As Smart Mode is in Beta there is limited functionality. If you can't find what you're looking for or want to recommend a feature. Create a feature request under the issues section!