Skip to content

Instantly share code, notes, and snippets.

@GLitchfield
Created May 7, 2014 17:50
Show Gist options
  • Save GLitchfield/f023f15f0ca3121bf5ff to your computer and use it in GitHub Desktop.
Save GLitchfield/f023f15f0ca3121bf5ff to your computer and use it in GitHub Desktop.
package com.barchart.util.value.impl;
import com.barchart.util.value.ValueFactoryImpl;
import com.barchart.util.value.api.Price;
import com.barchart.util.value.api.ValueFactory;
public class TestTest {
public static final ValueFactory vals = ValueFactoryImpl.instance;
public static void main(final String[] args) {
final Price price = vals.newPrice(123456, -4);
vals.newPrice(1235, -2);
price.round(2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment