struct CQL::Postgres::Types::DecimalText

Overview

A numeric value kept as the exact decimal text PostgreSQL sent, so no precision is lost. Use BigDecimal.new(numeric.to_s) when big is loaded.

Defined in:

postgres/types/decimal_text.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String) #

[View source]

Instance Method Detail

def nan? : Bool #

[View source]
def text : String #

[View source]
def to_f : Float64 #

[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]