fractal_utils

Constant CURRENCY_SYMBOL

Source
pub const CURRENCY_SYMBOL: char = '₣';
Expand description

The symbol of Fractal Global Credits

This symbol, should be used whenever an amount of currency has to be represented. It is a FRENCH FRANC SIGN symbol, the Unicode U+20A3 character. It can easily be used when formatting currencies:

use fractal_utils::{CURRENCY_SYMBOL, Amount};
let amount = Amount::from_repr(30_000); // 30.000
assert_eq!(format!("{} {}", CURRENCY_SYMBOL, amount), "₣ 30");