Skip to content

PostgreSQL: real type is "6 decimal digits precision" #327

Open

Description

@Kexkey

https://www.postgresql.org/docs/current/datatype-numeric.html

Currently, watching_tx.amount, recipient.amount as well as tx.fee columns are of type real which causes precision loss when the value is > 1.

We need to change those types to double.

Activity

  1. Kexkey commented on Feb 26, 2024

    @Kexkey
    CollaboratorAuthor

    Let's move from floats to bigints for persistance and deal with decimal points in responses only...

  2. thibistaken commented on May 20, 2025

    @thibistaken

    done or still wip @Kexkey ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions