Skip to content

Instantly share code, notes, and snippets.

@shamlikt
shamlikt / roundUp.py
Created September 23, 2015 10:57
I got a qustion to Round floating number without using any function. this is two line script to do that
a=input('Number to RoundUp: ')
print str((int(str(a).split('.')[1])/10.0+.5)+int(str(a).split('.')[0])).split('.')[0]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
server:
host: "0.0.0.0"
port: 9091
log:
path: "word_search.log"