Skip to content

Comments

fix: use decimal type for donation quantity to prevent precision loss#47

Merged
Destroyer795 merged 1 commit intomainfrom
fix/quantity-loss
Feb 22, 2026
Merged

fix: use decimal type for donation quantity to prevent precision loss#47
Destroyer795 merged 1 commit intomainfrom
fix/quantity-loss

Conversation

@Destroyer795
Copy link
Member

  • Changed donation quantity column from 'float' to 'decimal(10,2)' in Donation entity
  • Fixes issue where entered quantities (e.g., 100) were showing as slightly less than entered value
  • float type causes binary floating-point precision issues; decimal preserves exact decimal values
  • Schema will auto-sync on next backend startup via TypeORM

@Destroyer795 Destroyer795 merged commit 9821783 into main Feb 22, 2026
2 checks passed
@Destroyer795 Destroyer795 deleted the fix/quantity-loss branch February 22, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant