Search Preview
Working with monetary amounts
bitcoinj.github.ioIntroduction Getting started Documentation Community The Coin class Formatting The Coin class Bitcoin amounts
.io > bitcoinj.github.io
SEO audit: Content analysis
Language | Error! No language localisation is found. | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Title | Working with monetary amounts | ||||||||||||||||||||||||||||||||||||
Text / HTML ratio | 56 % | ||||||||||||||||||||||||||||||||||||
Frame | Excellent! The website does not use iFrame solutions. | ||||||||||||||||||||||||||||||||||||
Flash | Excellent! The website does not have any flash contents. | ||||||||||||||||||||||||||||||||||||
Keywords cloud | Coin class Bitcoin amounts API represented formatting instances amount provided bitcoinj parse MonetaryFormat strings static safe future raw satoshis type | ||||||||||||||||||||||||||||||||||||
Keywords consistency |
|
||||||||||||||||||||||||||||||||||||
Headings |
|
||||||||||||||||||||||||||||||||||||
Images | We found 1 images on this web page. |
SEO Keywords (Single)
Keyword | Occurrence | Density |
---|---|---|
Coin | 8 | 0.40 % |
class | 5 | 0.25 % |
Bitcoin | 4 | 0.20 % |
amounts | 4 | 0.20 % |
API | 4 | 0.20 % |
represented | 3 | 0.15 % |
formatting | 3 | 0.15 % |
instances | 3 | 0.15 % |
amount | 3 | 0.15 % |
provided | 3 | 0.15 % |
bitcoinj | 3 | 0.15 % |
parse | 3 | 0.15 % |
MonetaryFormat | 3 | 0.15 % |
strings | 3 | 0.15 % |
static | 2 | 0.10 % |
safe | 2 | 0.10 % |
future | 2 | 0.10 % |
raw | 2 | 0.10 % |
satoshis | 2 | 0.10 % |
type | 2 | 0.10 % |
SEO Keywords (Two Word)
Keyword | Occurrence | Density |
---|---|---|
Coin class | 3 | 0.15 % |
and more | 3 | 0.15 % |
after the | 2 | 0.10 % |
the bitcoinj | 2 | 0.10 % |
static instances | 2 | 0.10 % |
for formatting | 2 | 0.10 % |
is a | 2 | 0.10 % |
of the | 2 | 0.10 % |
to use | 2 | 0.10 % |
the decimal | 2 | 0.10 % |
MonetaryFormat is | 2 | 0.10 % |
to be | 2 | 0.10 % |
Monetary interface | 2 | 0.10 % |
a long | 2 | 0.10 % |
as a | 2 | 0.10 % |
type safe | 2 | 0.10 % |
The Coin | 2 | 0.10 % |
decimal point | 2 | 0.10 % |
this is | 2 | 0.10 % |
are provided | 2 | 0.10 % |
SEO Keywords (Three Word)
Keyword | Occurrence | Density | Possible Spam |
---|---|---|---|
the decimal point | 2 | 0.10 % | No |
The Coin class | 2 | 0.10 % | No |
Introduction Getting started | 1 | 0.05 % | No |
to be placed | 1 | 0.05 % | No |
preconfigured instances are | 1 | 0.05 % | No |
Some preconfigured instances | 1 | 0.05 % | No |
amount Some preconfigured | 1 | 0.05 % | No |
the amount Some | 1 | 0.05 % | No |
after the amount | 1 | 0.05 % | No |
or after the | 1 | 0.05 % | No |
before or after | 1 | 0.05 % | No |
placed before or | 1 | 0.05 % | No |
be placed before | 1 | 0.05 % | No |
currency code to | 1 | 0.05 % | No |
code to be | 1 | 0.05 % | No |
are provided as | 1 | 0.05 % | No |
the currency code | 1 | 0.05 % | No |
allowing the currency | 1 | 0.05 % | No |
and allowing the | 1 | 0.05 % | No |
modes and allowing | 1 | 0.05 % | No |
SEO Keywords (Four Word)
Keyword | Occurrence | Density | Possible Spam |
---|---|---|---|
Introduction Getting started Documentation | 1 | 0.05 % | No |
to be placed before | 1 | 0.05 % | No |
preconfigured instances are provided | 1 | 0.05 % | No |
Some preconfigured instances are | 1 | 0.05 % | No |
amount Some preconfigured instances | 1 | 0.05 % | No |
the amount Some preconfigured | 1 | 0.05 % | No |
after the amount Some | 1 | 0.05 % | No |
or after the amount | 1 | 0.05 % | No |
before or after the | 1 | 0.05 % | No |
placed before or after | 1 | 0.05 % | No |
be placed before or | 1 | 0.05 % | No |
code to be placed | 1 | 0.05 % | No |
are provided as static | 1 | 0.05 % | No |
currency code to be | 1 | 0.05 % | No |
the currency code to | 1 | 0.05 % | No |
allowing the currency code | 1 | 0.05 % | No |
and allowing the currency | 1 | 0.05 % | No |
modes and allowing the | 1 | 0.05 % | No |
rounding modes and allowing | 1 | 0.05 % | No |
point rounding modes and | 1 | 0.05 % | No |
Internal links in - bitcoinj.github.io
Building a simple GUI wallet tutorial
Which BIPs are supported by bitcoinj
How to depend on bitcoinj with Maven using projects
How to depend on bitcoinj with Gradle using projects
An introduction to using the library
bitcoinj 0.14.7 API
Limitations and missing features.
Understanding the bitcoinj security model
Working with bitcoinj
How the different components of your app fit together
How to test applications
Working with transactions
Working with the wallet
Working with monetary amounts
How to handle networking/peer APIs
API Contexts
Using the experimental full verification mode
Working with contracts
Working with the BIP70 payment protocol API
Working with micropayment channels
How to access bitcoinj from other languages
Coding conventions in bitcoinj
Release notes
Bitcoinj.github.io Spined HTML
Working with monetary amounts Introduction Getting started Documentation Community The Coin matriculation Formatting The Coin matriculation Bitcoin amounts in the bitcoinj API are represented using the Coin class. Coin is superficially similar to BigInteger except that it wraps a long internally and thus cannot represent summarily large quantities of bitcoin. As there is a global limit on how many bitcoins can exist this is unlikely to pose an issue for the forseeable future. The raw number of satoshis represented by a Coin instance is wieldy via the public final field value, and the rest of the matriculation is well-nigh making it easier and increasingly type unscratched to work with these amounts. Methods are provided to do the pursuit operations in a type unscratched manner: add, subtract, multiply, divide, divideAndRemainder isPositive, isNegative, isZero, isGreaterThan, isLessThan shift left, shift right, negate parse from string, for example Coin.parseCoin("1.23") will parse the given value as a bitcoin quantity. build from a raw value in satoshis There are moreover static instances representing ZERO, COIN, CENT, MILLICOIN, MICROCOIN, SATOSHI and FIFTY_COINS. Coin implements Comparable, Serializable and moreover the bitcoinj provided Monetary interface. The Monetary interface represents any monetary value in any currency, represented as a long with a “smallest unit exponent”. For Bitcoin this is 8 but for most national/state currencies it will be either two or zero. Formatting bitcoinj provides two APIs for formatting Coin amounts to and from strings: MonetaryFormat is an immutable formatting matriculation that can be configured to use various variegated denominations (BTC, mBTC, uBTC etc), varying numbers of digits without the decimal point, rounding modes, and permitting the currency lawmaking to be placed surpassing or without the amount. Some pre-configured instances are provided as static instances on both MonetaryFormat and Coin. MonetaryFormat is intended to be usable with fiat currencies as well as Bitcoin. BtcFormat is a larger and increasingly ramified API that builds on the Java java.text.Format infrastructure. It has wide-stretching JavaDocs that explain its many features, including but not limited to: will-less selection of the most towardly denomination, worthiness to parse strings that include unicode Bitcoin symbols and denomination codes, padding of strings so that formatted amounts can uncurl virtually the decimal point, locale sensitivity for formatting, and more. Which API to use is up to you: they were unsalaried by two variegated contributors and we’re waiting to proceeds wits in which ones are most popular, with an eye to creating a unified API in future.