calculadora de conversão de moeda no debian

2

algum tempo atrás eu vi uma calculadora com conversão de moeda embutida com uma opção para atualizar para as taxas atuais, se assim o desejar. Alguém sabe do que estou falando? Vi isso no debian.

    
por shirish 05.12.2017 / 19:47

3 respostas

4

Calcular

Instale o pacote qalculate-gtk :

Qalculate! is small and simple to use but with much power and versatility underneath. Features include customizable functions, units, arbitrary precision, plotting, and a graphical interface that uses a one-line fault-tolerant expression entry (although it supports optional traditional buttons).

apt install qalculate-gtk

inicie o aplicativo, você verá a seguinte mensagem:

You need to download exchange rates to be able to convert 
between different currencies. You can later get current 
exchange rates by selecting "Update Exchange Rates" under the File menu.

Do you want to fetch exchange rates now from the Internet?

Clique em Sim, no menu, selecione Unidades e moeda.

gnome-calculator

apt install gnome-calculator

Description

The GNOME calculator is a powerful graphical calculator with financial, logical and scientific modes. It uses a multiple precision package to do its arithmetic to give a high degree of accuracy.

No Modo Avançado, selecione Modo Financeiro. Além disso, o modo de teclado permite converter moeda.

    
por 05.12.2017 / 20:43
2

1) Keurocalc?

KEurocalc is a universal currency converter and calculator. It downloads latest exchange rates directly from the European Central Bank and Time Genie.

2) Ou você pode simplesmente usar o navegador Chromium. por exemplo. Entrada na barra de endereço

convert 500 usd to gbp

    
por 05.12.2017 / 21:21
1

Na linha de comando:

#!/bin/sh
# from Ambrevar https://bbs.archlinux.org/viewtopic.php?pid=1568235#p1568235

if [ $# -ne 3 ] || [ "$1" = "-h" ]; then
    cat <<EOF
Usage: ${0##*/} VALUE IN-CURRENCY OUT-CURRENCY

Convert VALUE from IN-CURRENCY to OUT-CURRENCY.
CURRENCY is a 3-letters code like EUR, SEK, USD, etc.

EOF
    exit
fi
curl -sA "Mozilla/5.0" "https://finance.google.com/finance/converter?a=$1&from=$2&to=$3" | \
    awk -F '<|>' '/result/ {print substr($5,1,length($5)-6)}'
    
por 05.12.2017 / 21:26