Encode ratio numbers as long long (LL).