Menu

#Decimal

22 posts

Feed·
20 of 22 posts
Money in Code: Integer Cents vs Decimal Types
📰
0Read More

Money in Code: Integer Cents vs Decimal Types

DEV Community: java·t.labo·about 13 hours ago
#WefVn9fq
#devtojava#devto#dev#decimal#currency

Numbers lecture 4: int(19.99*100) gave 1998, BigDecimal 2.0 != 2.00, bcmul dropped cents, naive splits failed 32% of the time, and decimals cost 2.7x

15s
O: Open/Closed Principle (SOLID Principles with Examples)
📰
0Read More

O: Open/Closed Principle (SOLID Principles with Examples)

DEV Community: dotnet·DIVAKAR UPADHYAY·2 days ago
#jUGplFPY
#devtodotnet#devto#dev#type#decimal

The five SOLID principles with bad-vs-good C# code, plus DRY, KISS, YAGNI, dependency injection and how SOLID shows up in ASP.NET Core.

15s
Data types, variables, constants and conversions (VB.NET)
📰
0Read More

Data types, variables, constants and conversions (VB.NET)

DEV Community: dotnet·DIVAKAR UPADHYAY·5 days ago
#3FrJ24ei
#devtodotnet#devto#dev#string#integer

VB.NET syntax and program structure, data types and Option Strict/Explicit/Infer, operators and control flow, procedures (Sub vs Function, ByVal/ByRef

15s
Four Million Checks for Two Million Orders
📰
0Read More

Four Million Checks for Two Million Orders

DEV Community: dotnet·Sukhpinder Singh·17 days ago
#Wx0xAnGq
#devtodotnet#devto#dev#count#once

A reporting method called Count() and then foreach on the same deferred LINQ query, re-running the filter on every element twice. The predicate ran 4 million times for 2 million orders. Here is how I caught it and why the parameter type was the real bug.

15s
Payroll math has dates in it: modelling Ireland's October PRSI change
📰
0Read More

Payroll math has dates in it: modelling Ireland's October PRSI change

DEV Community: beginners·Rai Ansar·20 days ago
#052cRnxT
#devtobeginners#devto#dev#rate#pays

Most take-home pay calculators I've read share one shortcut: they turn every deduction into an annual...

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·24 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·24 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·7 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