Swift Program to Calculate the Ceiling of a Double Number

You are currently viewing Swift Program to Calculate the Ceiling of a Double Number

Swift program to calculate the ceiling of a double number

// Swift program to calculate the ceiling 
// of a double number

import Swift
import Foundation

var res:Double  =   0.0

res = ceil(16.234)

print("Result of ceiling is: ",res)

Output

Result of ceiling is:  17.0

...Program finished with exit code 0
Press ENTER to exit console.

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply