Skip to content

JoseGE/metric-converter

Repository files navigation

metric-converter

This metric converter can work to perform transformations focused on distances (length) such as:

  • kilometer (km)
  • meter (m)
  • centimeter (cm)
  • inch (in)
  • feet (ft)
  • mile (mi)

Basic

You need have installed dart enviroment, get from https://dart.dev/

How to use

command: dart bin/main.dart and input your file path

You must have a file source-to-convert, this can only by txt file, where contains data separated by lines and commas (,) or bar (|) like

800 , km , m
150 , m , in
150 | m | mi
Where m, dc, km and ml are meter, decameter, kilometer and millimeter. When you execute the program yo should get a new file with convertions with next estructure
Value:800 | From:cm | To: km | Result:0.0001
Value:150 | From:km | To: m | Result:150000
Value:150 | From:km | To: m | Result:150000

Releases

No releases published

Packages

No packages published

Languages