[英]Using NSIS Math Library: How to perform 'Power to'
我試圖使用NSIS數學函數庫進行Power
計算。 我在計算數學庫語法方面有很多困難。
如何在NSIS中執行此計算: h ^= g;
Var h # example variables
Var g
Var a
# I am attempting to perform the following calculations in NSIS.
# I'm not sure how exactly to do it using the math library syntax?
# Do I need to include the Math.nsh library to use it?
# h ^= g;
# My attempt:
Math::Script "a = $h; b = $g; c = ?? a = Power(a,b,c); R0 = a"
它非常類似於C / C ++,要定義一個計算XOR並返回結果的函數,請嘗試;
Math::Script 'myxor(h,g) (h^g);'
之后,myxor(3,2)將給您3 XOR 2
= 1。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.