Skip to content

The open alternative to Salesforce, designed for AI.

254 B
Raw Blame
import { type CurrencyValue } from './marketplace-api-types';

export const microsToUsd = (currency: CurrencyValue): number | null =>
  currency && typeof currency.amountMicros === 'number'
    ? Math.round(currency.amountMicros / 1_000_000)
    : null;