You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Lyuben Todorov (JIRA)" <ji...@apache.org> on 2014/08/13 14:58:15 UTC

[jira] [Resolved] (CASSANDRA-5274) Option to disable scientific notation in cqlsh

     [ https://issues.apache.org/jira/browse/CASSANDRA-5274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lyuben Todorov resolved CASSANDRA-5274.
---------------------------------------

    Resolution: Not a Problem

You can disable scientific notation by cranking up the value of the floating pointe precision for cqlsh using a cqlshrc file placed in the {{~/.cassandra}} directory ([Docs on how to do it|http://www.datastax.com/documentation/cql/3.0/cql/cql_reference/cqlsh.html#refCqlsh__cqlshUsingCqlshrc]). To increase the floating point precision so floats \/ doubles don't get abreviated add the {{float_precision}} setting under the {{\[UI\]}} section:

{noformat}
; Sample ~/.cqlshrc file.

[authentication]
;username = fred
;password = !!bang!!$

[ui]
color = on
completekey = tab
; increase floating point precision to avoid scientific notation. 
float_precision = 30

;; optional section, overrides default certfile in [ssl] section, if present
{noformat}

> Option to disable scientific notation in cqlsh
> ----------------------------------------------
>
>                 Key: CASSANDRA-5274
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5274
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.1.10, 1.2.1
>            Reporter: J.B. Langston
>            Assignee: Lyuben Todorov
>            Priority: Minor
>
> Currently cqlsh automatically displays large numbers using scientific notation. Customers have requested the option to disable this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)