Created
April 10, 2018 02:42
-
-
Save tatuas/0b330ac24632255e11292cac915d1c10 to your computer and use it in GitHub Desktop.
kotlinで最大値と最小値を設定
This file contains hidden or 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
FLOAT.coerceAtMost(2.0f) // 最大値は2.0 | |
FLOAT.coerceAtLeast(1.0f) // 最小値は1.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment