Toggle navigation shitcode
  • Latest
  • Browse
  • Top
  • Worst
  • Add
  • All 495
  • ActionScript 3
  • Bash 7
  • Brainfuck 1
  • LSL 21
  • C++ 35
  • C# 54
  • CSS 5
  • Pascal 1
  • Django 1
  • Erlang 1
  • GLSL 1
  • Go 7
  • Groovy 1
  • HTML 10
  • Java 76
  • JavaScript 104
  • Less 1
  • Lua 3
  • Nix 1
  • Obj-C 4
  • OCaml 1
  • Perl 1
  • PHP 74
  • PowerShell 1
  • Python 46
  • Ruby 3
  • Rust 2
  • Scala 3
  • SQL 7
  • Swift 4
  • TypeScript 13
  • VBScript 2
  • Verilog 1
#806 Who needs build in functions for converting to GB when you can divide three times? PowerShell +9
$MaxSizeGB = [math]::Round($MaxSize/1024/1024/1024,2)
Write-Output "    the maximum size is $MaxSizeGB GB"

At least [math] is used. So close, and yet so far...

Comments
By Anonymous, 2020-04-03 20:59:34

© Shitcode.net 2025, Powered by Yii Framework

GitHub • About • Admin