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
/** | |
* 数値を整数・少数表記に変換する。 | |
* 内部的には、指数表記の文字列をパースし、小数表記に変換している。 | |
* | |
* @param {number|string} number 変換したい数値、または数値形式の文字列。 | |
* 数値型であればNaNやInfinityも指定できるが、そのまま文字列化して返される。 | |
* @return {string} 小数表記の数値文字列 | |
* @throws 適切な形式の数値、または文字列が与えられなかった場合に発生する。 | |
* | |
* Note: この関数は、JavaScriptで正確な数値演算を行うために使う**べきではない**。 |
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
#Requires -Version 5.0 | |
#Requires -PSEdition Desktop | |
## 必要な場合にのみレジストリの値を更新する ## | |
function Set-ItemPropertyWhenNeeded() { | |
param ( | |
[Parameter(Mandatory)] | |
[string]$LiteralPath, | |
[Parameter(Mandatory)] |
NewerOlder