<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>money on Rietta Cybersecurity</title>
    <link>https://rietta.com/tags/money/</link>
    <description>Recent content in money on Rietta Cybersecurity</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>1999-2026 Rietta Inc. All Rights Reserved.</copyright>
    <atom:link href="https://rietta.com/tags/money/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Best Data Type to store Money in MySQL?</title>
      <link>https://rietta.com/blog/best-data-types-for-currencymoney-in/</link>
      <pubDate>Tue, 04 Jun 2019 13:30:00 -0400</pubDate>
      <guid>https://rietta.com/blog/best-data-types-for-currencymoney-in/</guid>
      <description>&lt;h2 id=&#34;the-short-answer-tldr&#34;&gt;The Short Answer (TL;DR)&lt;/h2&gt;&#xA;&lt;h3 id=&#34;if-acronym-titlegenerally-accepted-accounting-principlesa-hrefhttpsenwikipediaorgwikigenerally_accepted_accounting_principles_united_statesgaapaacronym-compliance-is-required-or-you-need-4-decimalblogmysql-decimal-data-type-places&#34;&gt;If &lt;acronym title=&#34;Generally Accepted Accounting Principles&#34;&gt;&lt;a href=https://en.wikipedia.org/wiki/Generally_Accepted_Accounting_Principles_(United_States)&gt;GAAP&lt;/a&gt;&lt;/acronym&gt; Compliance is required or you need 4 &lt;a href=&#34;https://rietta.com/blog/mysql-decimal-data-type/&#34;&gt;decimal&lt;/a&gt; places:&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;DECIMAL&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Which supports a max value of:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$999,999,999.9999&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;otherwise-if-2-decimal-places-is-enough&#34;&gt;Otherwise, if 2 decimal places is enough:&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;DECIMAL&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Which supports a max value of:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$99,999,999,999.99&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Storing currency in PostgreSQL</title>
      <link>https://rietta.com/blog/postgresql-currency-types/</link>
      <pubDate>Mon, 28 Jan 2019 21:00:00 -0500</pubDate>
      <guid>https://rietta.com/blog/postgresql-currency-types/</guid>
      <description>&lt;p&gt;There are different ways we can store currency in PostgreSQL, this blog post will cover the money and numeric types.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
