<commit_before>import React from 'react';

/*
 * NB: eventually we may add multiple currencies/denominations;
 * this will require conversion and switching the symbols.
 *
 * This may likely be done based on locale.
 */

const Currency = ({amount}) => {
  const value = (typeof(amount) !== 'number') ?
    '' : (amount / 10000).toPrecision(String(amount).length - 2);

  return (
    <span>${value}</span>
  );
};

export default Currency;
<commit_msg>fix stupid number formatting issue<commit_after>import React from 'react';

/*
 * NB: eventually we may add multiple currencies/denominations;
 * this will require conversion and switching the symbols.
 *
 * This may likely be done based on locale.
 */

const Currency = ({amount}) => {
  const value = (typeof(amount) !== 'number') ?
    '' : amount.toFixed(4);

  return (
    <span>${value}</span>
  );
};

export default Currency;

{'fraction_non_alphanumeric': 0.14092446448703494, 'fraction_numerical': 0.007891770011273957, 'mean_word_length': 3.774193548387097, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '650972', 'n_tokens_mistral': 275, 'n_tokens_neox': 258, 'n_words': 86}