Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fractional/decimal prices are rounded up to whole number #1003

Open
sgtlaggy opened this issue Dec 29, 2024 · 1 comment
Open

Fractional/decimal prices are rounded up to whole number #1003

sgtlaggy opened this issue Dec 29, 2024 · 1 comment
Labels
bug Something isn't working fixed
Milestone

Comments

@sgtlaggy
Copy link
Contributor

sgtlaggy commented Dec 29, 2024

SPT Version

3.10

Project Type

Server

Expected Result

When purchasing 100 of an item each costing $0.60 (for example), the total cost should be $60.

Actual Result

The total cost is $100.

Steps To Reproduce

Try to purchase 100 .45 ACP Lasermatch from Peacekeeper, which should cost 60 dollars, and see total price is actually $100.

Server Log

N/A

BepinEx Log

N/A

Client Log

N/A

Player Profile

No response

Screenshots

No response

@sgtlaggy sgtlaggy added the triage New issue. Who dis? label Dec 29, 2024
@chompDev chompDev added this to the 4.0.0 milestone Jan 6, 2025
@chompDev chompDev added needs-investigation bug Something isn't working fixed and removed triage New issue. Who dis? needs-investigation labels Jan 6, 2025
@chompDev
Copy link
Contributor

chompDev commented Jan 6, 2025

Fixed with: fc7b33c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants