Menu

#Decimal

8 posts

Feed·
8 of 8 posts
Why 0.1 + 0.2 breaks wallets: money math in JavaScript and every other language
📰
0Read More

Why 0.1 + 0.2 breaks wallets: money math in JavaScript and every other language

DEV Community: reactnative·Bogdan Umaniuk·about 24 hours ago
#xn9sZ6bJ
#devtoreactnative#devto#dev#enter#exit

I work on the mobile app of a crypto exchange, in React Native and native Android. Most of the money...

15s
Splitting loan payments into principal and interest with Decimal, and generating the journal entries
📰
0Read More

Splitting loan payments into principal and interest with Decimal, and generating the journal entries

DEV Community: tutorial·Damin Mutti·3 days ago
#fTuVvZSC
#devtotutorial#devto#dev#decimal#payment

To split a loan payment into principal and interest in code, compute each month's interest as the...

15s
Wells Fargo statements: using the half-empty 'Ending daily balance' column as a free parser test
📰
0Read More

Wells Fargo statements: using the half-empty 'Ending daily balance' column as a free parser test

DEV Community: python·Damin Mutti·4 days ago
#ejUi9EGl
#devtopython#devto#dev#balance#decimal

Wells Fargo statements print an ending daily balance only on the last transaction of each day,...

15s
Why ChatGPT will silently lie about your bank statement (and how to catch it)
🖼️
0Read More

Why ChatGPT will silently lie about your bank statement (and how to catch it)

DEV Community·Kyr·6 months ago
#tTFXKRIK
#ai#llm#python#every#statement

Modern LLMs are excellent at looking right - and for bank-statement extraction, looking right is the failure mode you cannot catch by eye. Here's the 20 lines of Python that separate a plausible answer from a reconciled one.

15s
Testing a Go exchange API client: mocks, httptest and testcontainers
📰
0Read More

Testing a Go exchange API client: mocks, httptest and testcontainers

DEV Community·Odilon HUGONNOT·6 months ago
#UHZJbryN
#go#tests#api#binance#exchange

You can't hit the real Binance API in tests. ExchangeClient interface, mockgen mocks, httptest for parsing real responses, testcontainers for PostgreSQL integration tests.

15s