Home
last modified time | relevance | path

Searched refs:amount2 (Results 1 – 25 of 156) sorted by relevance

1234567

/dports/finance/beancount/beancount-2.3.3/beancount/core/
H A Damount.py179 def add(amount1, amount2): argument
191 assert isinstance(amount2.number, Decimal), (
192 "Amount2's number is not a Decimal instance: {}".format(amount2.number))
193 if amount1.currency != amount2.currency:
196 amount1, amount2))
197 return Amount(amount1.number + amount2.number, amount1.currency)
199 def sub(amount1, amount2): argument
211 assert isinstance(amount2.number, Decimal), (
213 if amount1.currency != amount2.currency:
216 amount1, amount2))
[all …]
H A Damount_test.py44 amount2 = Amount.from_string('100 USD')
45 self.assertEqual(amount1, amount2)
66 amount2 = Amount(D('0.00000001'), 'BTC')
67 self.assertEqual('0.00000001 BTC', str(amount2))
75 amount2 = Amount(D('100'), 'USD')
76 self.assertEqual(amount1, amount2)
86 amount2 = Amount(D('100,034.027456'), 'CAD')
87 self.assertEqual(2, len({amount: True, amount2: False}))
/dports/devel/etl/synfig-1.2.2/synfig-core/src/modules/mod_noise/
H A Dnoise.cpp126 float amount2=0.0f; in color_func() local
136 amount2=random(RandomNoise::SmoothType(smooth),0+(detail-i)*5,x2,y,ftime)+amount2*0.5; in color_func()
137 if(amount2<-1)amount2=-1;if(amount2>1)amount2=1; in color_func()
144 amount2=abs(amount2); in color_func()
176 amount2=amount2/2.0f+0.5f; in color_func()
182 ret=gradient(amount,max(amount3,max(amount,amount2))-min(amount3,min(amount,amount2))); in color_func()
/dports/graphics/synfig/synfig-1.2.2/synfig-core/src/modules/mod_noise/
H A Dnoise.cpp126 float amount2=0.0f; in color_func() local
136 amount2=random(RandomNoise::SmoothType(smooth),0+(detail-i)*5,x2,y,ftime)+amount2*0.5; in color_func()
137 if(amount2<-1)amount2=-1;if(amount2>1)amount2=1; in color_func()
144 amount2=abs(amount2); in color_func()
176 amount2=amount2/2.0f+0.5f; in color_func()
182 ret=gradient(amount,max(amount3,max(amount,amount2))-min(amount3,min(amount,amount2))); in color_func()
/dports/graphics/synfigstudio/synfig-1.2.2/synfig-core/src/modules/mod_noise/
H A Dnoise.cpp126 float amount2=0.0f; in color_func() local
136 amount2=random(RandomNoise::SmoothType(smooth),0+(detail-i)*5,x2,y,ftime)+amount2*0.5; in color_func()
137 if(amount2<-1)amount2=-1;if(amount2>1)amount2=1; in color_func()
144 amount2=abs(amount2); in color_func()
176 amount2=amount2/2.0f+0.5f; in color_func()
182 ret=gradient(amount,max(amount3,max(amount,amount2))-min(amount3,min(amount,amount2))); in color_func()
/dports/databases/fastdb/fastdb/GiST/RSTree/
H A DRTentry.h36 amount2 = 0; in RTpenalty()
39 RTpenalty(const double d) : amount2(0), amount3(0) {}; in RTpenalty()
42 amount2 = d2; in RTpenalty()
46 amount = d; amount2 = amount3 = 0;
52 if (amount2 < p.amount2) return(1);
53 if (amount2 > p.amount2) return(0);
58 double amount2; variable
/dports/databases/gigabase/gigabase/GiST/RSTree/
H A DRTentry.h36 amount2 = 0; in RTpenalty()
39 RTpenalty(const double d) : amount2(0), amount3(0) {}; in RTpenalty()
42 amount2 = d2; in RTpenalty()
46 amount = d; amount2 = amount3 = 0;
52 if (amount2 < p.amount2) return(1);
53 if (amount2 > p.amount2) return(0);
58 double amount2; variable
/dports/finance/ledgersmb12/ledgersmb/sql/legacy/
H A DPg-upgrade-2.6.12-2.6.17.sql14 ALTER TABLE acc_trans ADD COLUMN amount2 NUMERIC;
15 UPDATE acc_trans set amount2 = amount;
17 ALTER TABLE acc_trans RENAME column amount2 TO amount;
/dports/finance/odoo/odoo-19d77c2a03335eb95a686bd69a1b56b38e87d609/odoo/addons/base/tests/
H A Dtest_float.py48 def try_compare(amount1, amount2, expected): argument
49 self.assertEqual(currency.compare_amounts(amount1, amount2), expected,
50 … "Rounding error, compare_amounts(%s,%s) should be %s" % (amount1, amount2, expected))
136 def try_compare(amount1, amount2, expected): argument
137 self.assertEqual(float_compare(amount1, amount2, precision_digits=3), expected,
138 … "Rounding error, compare_amounts(%s,%s) should be %s" % (amount1, amount2, expected))
/dports/games/openage/openage-0.3.0-1262-ga554ab49/libopenage/gamestate/
H A Dresource.cpp128 bool ResourceBundle::has(const ResourceBundle& amount1, const ResourceBundle& amount2) const { in has()
130 if (!(this->get(i) >= amount1.get(i) + amount2.get(i))) { in has()
140 for (int i = this->count; i < amount2.count; i++) { in has()
141 if (amount2.get(i) > 0) { in has()
/dports/security/keybase/client-v5.7.1/go/vendor/github.com/keybase/stellarnet/
H A Damounts.go123 func CompareStellarAmounts(amount1, amount2 string) (int, error) {
128 amounty, err := ParseStellarAmount(amount2)
146 func WithinFactorStellarAmounts(amount1, amount2, maxFactor string) (bool, error) { argument
151 b, err := ParseStellarAmount(amount2)
/dports/net/storj/storj-1.45.3/storagenode/multinode/
H A Dpayout_test.go78 var amount2 int64 = 150
91 Held: amount2,
92 Paid: amount2,
115 require.Equal(t, response2.PayoutInfo.Paid, amount+amount2)
116 require.Equal(t, response2.PayoutInfo.Held, amount+amount2)
124 require.Equal(t, response3.PayoutInfo.Paid, amount2)
125 require.Equal(t, response3.PayoutInfo.Held, amount2)
/dports/net/storj/storj-1.45.3/satellite/orders/
H A Drollups_write_cache_test.go185 amount2 := (memory.MB * 10).Int64()
186 …dateBucketBandwidthAllocation(ctx, projectID2, bucketName, pb.PieceAction_GET, amount2, time.Now())
188 …pdateBucketBandwidthSettle(ctx, projectID2, bucketName, pb.PieceAction_GET, amount2, 0, time.Now())
202 Allocated: amount2,
203 Settled: amount2,
/dports/finance/p5-Finance-Currency-Convert/Finance-Currency-Convert-1.08/t/
H A Dconvert.t21 my $amount2 = $converter->convert(1, "EUR", "DEM");
23 is($amount2, $amount3, 'convertFromEUR');
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/
H A Dbid64_quantize.c43 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2;
152 amount2 = 64 - amount;
155 remainder_h >>= amount2;
/dports/lang/gcc6-aux/gcc-6-20180516/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/lang/gcc8/gcc-8.5.0/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/lang/gcc48/gcc-4.8.5/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/lang/gcc10/gcc-10.3.0/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/devel/riscv64-none-elf-gcc/gcc-8.4.0/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/lang/gcc12-devel/gcc-12-20211205/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/lang/gcc11-devel/gcc-11-20211009/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/devel/avr-gcc/gcc-10.2.0/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;
/dports/lang/gnat_util/gcc-6-20180516/libgcc/config/libbid/
H A Dbid64_quantize.c50 int exponent_x, exponent_y, digits_x, extra_digits, amount, amount2; local
165 amount2 = 64 - amount;
168 remainder_h >>= amount2;

1234567