home > 比較編 > Perl, PHP, Python, Ruby > arithmetic and logic >

ForNext

Only Do What Only You Can Do

031. integer division and divmod

VBScript

JScript

Perl

int ( 13 / 5 )
none

PHP

(int) (13 / 5)
none

Python

13 // 5
q, r = divmod(13, 5)

Ruby

13 / 5
q, r = 13.divmod(5)

PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system