- You can store a price in a floating point variable.
- All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
- All currencies are subdivided in decimal units (like dinar/fils)
- All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies)
- All currencies are subdivided.
- Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
- For any currency you can have a price of 1. (ZWL)
- Every country has its own currency.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is the clock interface. It's really simple, you write it once, use it anywhere. | |
* Cool extra things you can do: | |
* - have it return custom value objects | |
* - separate method for currentDate() without time part | |
*/ | |
interface Clock | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VM_PROJECT_DIR="/home/vagrant/project" | |
COMMAND="$1" | |
shift | |
run() { | |
vagrant ssh -c "cd $VM_PROJECT_DIR ; $*" | |
} |